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