2021-02-23 08:02:15 +01:00
|
|
|
import MapsPage from '../pageObject/MapsPage';
|
2021-02-23 06:40:02 +01:00
|
|
|
|
2021-02-23 07:37:29 +01:00
|
|
|
context('Maps Page', () => {
|
2022-07-13 03:45:36 +02:00
|
|
|
beforeEach(() => {
|
|
|
|
cy.visit('/c/maps');
|
|
|
|
});
|
2021-02-23 06:40:02 +01:00
|
|
|
|
2022-07-13 03:45:36 +02:00
|
|
|
it('should load the maps page', () => {
|
|
|
|
MapsPage.isLoaded();
|
|
|
|
});
|
2021-02-23 06:40:02 +01:00
|
|
|
|
2022-07-13 03:45:36 +02:00
|
|
|
it('should open the create dialog', () => {
|
|
|
|
MapsPage.create();
|
|
|
|
MapsPage.isCreateDialogVisible();
|
|
|
|
cy.matchImageSnapshot('maps-create');
|
|
|
|
});
|
2021-12-02 01:41:56 +01:00
|
|
|
|
2022-07-13 03:45:36 +02:00
|
|
|
it('should match the snapshot', () => {
|
|
|
|
cy.matchImageSnapshot('maps');
|
|
|
|
});
|
2021-02-23 08:02:15 +01:00
|
|
|
});
|