Bug 40173: Remove Cypress warnings

Cypress Warning: Cypress detected that you returned a promise in a
test, but also invoked one or more cy commands inside of that promise.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 18bde948ca)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Jonathan Druart 2025-07-10 13:51:00 +02:00 committed by Paul Derscheid
parent 523fa34d69
commit 12aff5e179
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 4 additions and 4 deletions

View File

@ -2,9 +2,9 @@ const { APIClient } = require("./../../plugins/dist/api-client.cjs.js");
describe("Using APIClient", () => {
let client = APIClient.default;
it("should 404 for non-existent biblio", async () => {
it("should 404 for non-existent biblio", () => {
try {
await client.koha.get({
client.koha.get({
endpoint: "/api/v1/public/biblios/99999",
return_response: true,
});
@ -15,9 +15,9 @@ describe("Using APIClient", () => {
});
describe("Using the api-client plugin", () => {
it("should 404 for non-existent biblio", async () => {
it("should 404 for non-existent biblio", () => {
try {
await cy.task("apiGet", {
cy.task("apiGet", {
endpoint: "/api/v1/public/biblios/99999",
return_response: true,
});