mirror of
https://github.com/maputnik/editor.git
synced 2026-02-07 05:00:01 +00:00
23 lines
461 B
TypeScript
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;
|
|
}
|