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:
parent
523fa34d69
commit
12aff5e179
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue