diff --git a/goofy-client/apps/goofy-e2e/src/integration/main-tests/postfach-mail/postfach-mail.filtered-by-organisationseinheit.e2e-spec.ts b/goofy-client/apps/goofy-e2e/src/integration/main-tests/postfach-mail/postfach-mail.filtered-by-organisationseinheit.e2e-spec.ts index b0b322a9609135924c289cb2a5c753798b4436f9..bfd4a54ec45dbff7c02fd4008796b96f782a15e7 100644 --- a/goofy-client/apps/goofy-e2e/src/integration/main-tests/postfach-mail/postfach-mail.filtered-by-organisationseinheit.e2e-spec.ts +++ b/goofy-client/apps/goofy-e2e/src/integration/main-tests/postfach-mail/postfach-mail.filtered-by-organisationseinheit.e2e-spec.ts @@ -46,13 +46,14 @@ describe('PostfachNachrichten filtered by organisationseinheit', () => { before(() => { loginAsKfinder(); - exist(vorgangList.getRoot()); waitForSpinnerToDisappear(); + exist(vorgangList.getRoot()); }) it('should open postfachNachrichten page', () => { logInParts(authorizedUrl); visitUrl(authorizedUrl); + waitForSpinnerToDisappear(); exist(postfachMailPage.getBreadcrump()); }); @@ -60,6 +61,7 @@ describe('PostfachNachrichten filtered by organisationseinheit', () => { it('should not open postfachNachrichten page', () => { logInParts(forbiddenUrl); visitUrl(forbiddenUrl); + waitForSpinnerToDisappear(); notExist(postfachMailPage.getBreadcrump()); }) @@ -68,12 +70,6 @@ describe('PostfachNachrichten filtered by organisationseinheit', () => { exist(snackbar.getCloseButton()); contains(snackbar.getMessage(), MessagesE2E.HTTP_STATUS_FORBIDDEN); }) - - it('should close snackbar on close button', () => { - snackbar.getCloseButton().click(); - - notExist(snackbar.getMessage()); - }) }) describe('on user kordner', () => { @@ -83,13 +79,14 @@ describe('PostfachNachrichten filtered by organisationseinheit', () => { before(() => { loginAsKordner(); - exist(vorgangList.getRoot()); waitForSpinnerToDisappear(); + exist(vorgangList.getRoot()); }) it('should open postfachNachrichten page', () => { logInParts(authorizedUrl); visitUrl(authorizedUrl); + waitForSpinnerToDisappear(); exist(postfachMailPage.getBreadcrump()) }) @@ -97,6 +94,7 @@ describe('PostfachNachrichten filtered by organisationseinheit', () => { it('should not open postfachNachrichten page', () => { logInParts(forbiddenUrl); visitUrl(forbiddenUrl); + waitForSpinnerToDisappear(); notExist(postfachMailPage.getBreadcrump()) }) @@ -105,12 +103,6 @@ describe('PostfachNachrichten filtered by organisationseinheit', () => { exist(snackbar.getCloseButton()); 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 {