2021-02-23 06:40:02 +01:00
|
|
|
export default class MapsPage {
|
2021-02-23 07:37:29 +01:00
|
|
|
static isLoaded() {
|
2021-02-23 08:02:15 +01:00
|
|
|
return cy.findByTestId('create');
|
2021-02-23 07:37:29 +01:00
|
|
|
}
|
2021-02-23 06:40:02 +01:00
|
|
|
|
2021-02-23 07:37:29 +01:00
|
|
|
static create() {
|
2021-02-23 08:02:15 +01:00
|
|
|
return cy.findByTestId('create').click();
|
2021-02-23 07:37:29 +01:00
|
|
|
}
|
2021-02-23 06:40:02 +01:00
|
|
|
|
2021-02-23 07:37:29 +01:00
|
|
|
static isCreateDialogVisible() {
|
|
|
|
//TODO move to findByText when the double create dialog issue is solved
|
2021-02-23 08:02:15 +01:00
|
|
|
return cy.findAllByText('Create a new mindmap');
|
2021-02-23 07:37:29 +01:00
|
|
|
}
|
2021-02-23 06:40:02 +01:00
|
|
|
}
|