Skip to content
Snippets Groups Projects
Commit adeadfe5 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-2339 OZG-2691 add e2e test

parent c86850ec
No related branches found
No related tags found
No related merge requests found
import { NavigationE2EComponent } from 'apps/goofy-e2e/src/components/navigation/navigation.e2e.component';
import { VorgangListE2EComponent } from 'apps/goofy-e2e/src/components/vorgang/vorgang-list.e2e.component';
import { MainPage, waitForSpinnerToDisappear } from 'apps/goofy-e2e/src/page-objects/main.po';
import { dropCollections } from 'apps/goofy-e2e/src/support/cypress-helper';
import { exist, notExist } from 'apps/goofy-e2e/src/support/cypress.util';
import { loginAsEmil } from 'apps/goofy-e2e/src/support/user-util';
describe('Navigation', () => {
const mainPage: MainPage = new MainPage();
const vorgangList: VorgangListE2EComponent = mainPage.getVorgangList();
const navigation: NavigationE2EComponent = mainPage.getNavigation();
before(() => {
loginAsEmil();
waitForSpinnerToDisappear();
exist(vorgangList.getRoot());
})
after(() => {
dropCollections();
})
describe('navigation item myVorgaenge', () => {
it('should not exists', () => {
notExist(navigation.getMyVorgaengeItem());
})
})
describe('navigation item allVorgaenge', () => {
it('should exists', () => {
exist(navigation.getAllVorgaengeItem());
})
})
})
\ No newline at end of file
...@@ -36,6 +36,20 @@ describe('Navigation', () => { ...@@ -36,6 +36,20 @@ describe('Navigation', () => {
dropCollections(); dropCollections();
}) })
describe('navigation item myVorgaenge', () => {
it('should exists', () => {
exist(navigation.getMyVorgaengeItem());
})
})
describe('navigation item allVorgaenge', () => {
it('should exists', () => {
exist(navigation.getAllVorgaengeItem());
})
})
describe('click on my vorgaenge', () => { describe('click on my vorgaenge', () => {
it('should hide not to user assigned vorgaenge', () => { it('should hide not to user assigned vorgaenge', () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment