wisemapping-frontend/packages/webapp/cypress/pageObject/MapsPage.ts
Juan Allo eaf1b3d910 Merged in feat/cypress (pull request #1)
Adding cypress integration into the webapp

* Merge branch 'master' into feat/cypress

* moving the config files to ts

* updating from master

* adding pipeline config

* updating the cypress base image to use the same node version

* moving node to 14.15.4

* unifying all the tasks into one step

* using cypress base image for the whole pipeline for now

* removing cypress examples

* adding readme for tests

Approved-by: Ezequiel Bergamaschi
2021-02-23 05:40:02 +00:00

15 lines
338 B
TypeScript

export default class MapsPage {
static isLoaded() {
return cy.findByTestId("create");
}
static create() {
return cy.findByTestId("create").click();
}
static isCreateDialogVisible() {
//TODO move to findByText when the double create dialog issue is solved
return cy.findAllByText("Create a new mindmap");
}
}