diff --git a/tests/cypress/support/commands.ts b/tests/cypress/support/commands.ts index 0fc6fda61..8859575aa 100644 --- a/tests/cypress/support/commands.ts +++ b/tests/cypress/support/commands.ts @@ -21,6 +21,7 @@ declare global { waitForApiResponse(alias: string, timeout?: number): Chainable; clearTestData(): Chainable; seedTestData(fixture: string): Chainable; + api(options: any): Chainable; } } } diff --git a/tests/cypress/support/e2e.ts b/tests/cypress/support/e2e.ts index e7f6b5fc9..26987e764 100644 --- a/tests/cypress/support/e2e.ts +++ b/tests/cypress/support/e2e.ts @@ -19,6 +19,7 @@ import './request.commands'; import './plex-settings.commands'; import './mock-data.commands'; import "cypress-real-events/support"; +import "@bahmutov/cy-api/support"; // Alternatively you can use CommonJS syntax: