From 2ee345ead3c2006bbb241861e1721c74dea62889 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 10 Jul 2025 13:51:00 +0200 Subject: [PATCH] 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 --- t/cypress/integration/t/api-client.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/cypress/integration/t/api-client.ts b/t/cypress/integration/t/api-client.ts index 7fb60112272..693328a61e4 100644 --- a/t/cypress/integration/t/api-client.ts +++ b/t/cypress/integration/t/api-client.ts @@ -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, }); -- 2.39.5