diff --git a/tests/support/e2e.ts b/tests/support/e2e.ts index 3844c36da..ca4fd04fb 100644 --- a/tests/support/e2e.ts +++ b/tests/support/e2e.ts @@ -21,6 +21,20 @@ import { BASE_URL } from '../../src/config' ApiConfig.init(`${BASE_URL}/api/v1`, DataverseApiAuthMechanism.SESSION_COOKIE) +//https://github.com/cypress-io/cypress/issues/18182 +declare global { + // eslint-disable-next-line @typescript-eslint/no-namespace + namespace Cypress { + interface Chainable { + wrap( + element: E | JQuery, + options?: Partial + ): Chainable> + wrap(object: S | Promise, options?: Partial): Chainable + } + } +} + // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore import registerCypressGrep from '@cypress/grep'