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

OZG-2348 OZG-2517 adjust navigation -> add waitForSpinner

parent 39abb8d8
No related branches found
No related tags found
No related merge requests found
...@@ -46,13 +46,14 @@ describe('PostfachNachrichten filtered by organisationseinheit', () => { ...@@ -46,13 +46,14 @@ describe('PostfachNachrichten filtered by organisationseinheit', () => {
before(() => { before(() => {
loginAsKfinder(); loginAsKfinder();
exist(vorgangList.getRoot());
waitForSpinnerToDisappear(); waitForSpinnerToDisappear();
exist(vorgangList.getRoot());
}) })
it('should open postfachNachrichten page', () => { it('should open postfachNachrichten page', () => {
logInParts(authorizedUrl); logInParts(authorizedUrl);
visitUrl(authorizedUrl); visitUrl(authorizedUrl);
waitForSpinnerToDisappear();
exist(postfachMailPage.getBreadcrump()); exist(postfachMailPage.getBreadcrump());
}); });
...@@ -60,6 +61,7 @@ describe('PostfachNachrichten filtered by organisationseinheit', () => { ...@@ -60,6 +61,7 @@ describe('PostfachNachrichten filtered by organisationseinheit', () => {
it('should not open postfachNachrichten page', () => { it('should not open postfachNachrichten page', () => {
logInParts(forbiddenUrl); logInParts(forbiddenUrl);
visitUrl(forbiddenUrl); visitUrl(forbiddenUrl);
waitForSpinnerToDisappear();
notExist(postfachMailPage.getBreadcrump()); notExist(postfachMailPage.getBreadcrump());
}) })
...@@ -68,12 +70,6 @@ describe('PostfachNachrichten filtered by organisationseinheit', () => { ...@@ -68,12 +70,6 @@ describe('PostfachNachrichten filtered by organisationseinheit', () => {
exist(snackbar.getCloseButton()); exist(snackbar.getCloseButton());
contains(snackbar.getMessage(), MessagesE2E.HTTP_STATUS_FORBIDDEN); contains(snackbar.getMessage(), MessagesE2E.HTTP_STATUS_FORBIDDEN);
}) })
it('should close snackbar on close button', () => {
snackbar.getCloseButton().click();
notExist(snackbar.getMessage());
})
}) })
describe('on user kordner', () => { describe('on user kordner', () => {
...@@ -83,13 +79,14 @@ describe('PostfachNachrichten filtered by organisationseinheit', () => { ...@@ -83,13 +79,14 @@ describe('PostfachNachrichten filtered by organisationseinheit', () => {
before(() => { before(() => {
loginAsKordner(); loginAsKordner();
exist(vorgangList.getRoot());
waitForSpinnerToDisappear(); waitForSpinnerToDisappear();
exist(vorgangList.getRoot());
}) })
it('should open postfachNachrichten page', () => { it('should open postfachNachrichten page', () => {
logInParts(authorizedUrl); logInParts(authorizedUrl);
visitUrl(authorizedUrl); visitUrl(authorizedUrl);
waitForSpinnerToDisappear();
exist(postfachMailPage.getBreadcrump()) exist(postfachMailPage.getBreadcrump())
}) })
...@@ -97,6 +94,7 @@ describe('PostfachNachrichten filtered by organisationseinheit', () => { ...@@ -97,6 +94,7 @@ describe('PostfachNachrichten filtered by organisationseinheit', () => {
it('should not open postfachNachrichten page', () => { it('should not open postfachNachrichten page', () => {
logInParts(forbiddenUrl); logInParts(forbiddenUrl);
visitUrl(forbiddenUrl); visitUrl(forbiddenUrl);
waitForSpinnerToDisappear();
notExist(postfachMailPage.getBreadcrump()) notExist(postfachMailPage.getBreadcrump())
}) })
...@@ -105,12 +103,6 @@ describe('PostfachNachrichten filtered by organisationseinheit', () => { ...@@ -105,12 +103,6 @@ describe('PostfachNachrichten filtered by organisationseinheit', () => {
exist(snackbar.getCloseButton()); exist(snackbar.getCloseButton());
contains(snackbar.getMessage(), MessagesE2E.HTTP_STATUS_FORBIDDEN); contains(snackbar.getMessage(), MessagesE2E.HTTP_STATUS_FORBIDDEN);
}) })
it('should close snackbar on close button', () => {
snackbar.getCloseButton().click();
notExist(snackbar.getMessage());
})
}) })
function logInParts(toLog: string): void { function logInParts(toLog: string): void {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment