Files
editor/cypress/e2e/cypress-wrapper-driver.ts
2023-12-30 18:26:50 +02:00

23 lines
461 B
TypeScript

import { CypressHelper } from "@shellygo/cypress-test-utils";
export default class CypressWrapperDriver {
private helper = new CypressHelper({ defaultDataAttribute: "data-wd-key" });
public given = {
...this.helper.given,
};
public get = {
...this.helper.get,
};
public when = {
...this.helper.when,
confirmAlert() {
cy.on("window:confirm", () => true);
},
};
public beforeAndAfter = this.helper.beforeAndAfter;
}