diff --git a/goofy-client/apps/goofy-e2e/src/e2e/main-tests/postfach-mail/postfach-nachrichten.cy.ts b/goofy-client/apps/goofy-e2e/src/e2e/main-tests/postfach-mail/postfach-nachrichten.cy.ts index 5c011fa59fb82f9ce613e582b2fe4325d8764526..5fda81fdc8f441ae009fffce67b3ced35b825cba 100644 --- a/goofy-client/apps/goofy-e2e/src/e2e/main-tests/postfach-mail/postfach-nachrichten.cy.ts +++ b/goofy-client/apps/goofy-e2e/src/e2e/main-tests/postfach-mail/postfach-nachrichten.cy.ts @@ -24,7 +24,7 @@ import { CyHttpMessages } from 'cypress/types/net-stubbing'; import { VorgangListE2EComponent } from '../../../components/vorgang/vorgang-list.e2e.component'; import { HttpMethodE2E } from '../../../model/util'; -import { ClientAttributeNameE2E, ClientAttributesE2E, VorgangE2E } from '../../../model/vorgang'; +import { VorgangE2E } from '../../../model/vorgang'; import { MainPage, waitForSpinnerToDisappear } from '../../../page-objects/main.po'; import { VorgangPage } from '../../../page-objects/vorgang.po'; import { dropCollections, countDownloadFiles, deleteDownloadFolder, interceptWithResponse } from '../../../support/cypress-helper'; @@ -32,8 +32,8 @@ import { exist, notExist } from '../../../support/cypress.util'; import { LinkRelE2E } from '../../../support/linkrels'; import { removeLinkFromResource } from '../../../support/tech.util'; import { loginAsSabine } from '../../../support/user-util'; -import { buildVorgang, createHasNewPostfachNachrichtClientAttribute, createHasPostfachNachrichtClientAttribute, createVorgang, initVorgaenge, objectIds } from '../../../support/vorgang-util'; -import { PostfachMailItemE2E, PostfachNachrichtSnackbarMessageE2E, VorgangAttachedItemClientE2E, VorgangAttachedItemE2E } from '../../../model/vorgang-attached-item'; +import { buildVorgang, createVorgang, initVorgaenge, objectIds } from '../../../support/vorgang-util'; +import { PostfachMailItemE2E, VorgangAttachedItemE2E } from '../../../model/vorgang-attached-item'; import { createPostfachNachrichtAttachedItem, createPostfachNachrichtReplyItem, initVorgangAttachedItem } from 'apps/goofy-e2e/src/support/vorgang-attached-item-util'; import { PostfachMailE2EComponent} from 'apps/goofy-e2e/src/components/postfach/postfach-mail.e2e.component'; import { PostfachMailPage } from 'apps/goofy-e2e/src/page-objects/postfach-mail.component.po'; @@ -45,18 +45,11 @@ describe('Postfach Nachrichten', () => { const postfachMailContainer: PostfachMailE2EComponent = vorgangPage.getPostfachMailcontainer(); const postfachMailPage: PostfachMailPage = new PostfachMailPage(); - const clientAttributes: ClientAttributesE2E = { - [VorgangAttachedItemClientE2E.KOP_NACHRICHTEN_MANAGER]: { - [ClientAttributeNameE2E.HAS_NEW_POSTFACH_NACHRICHT]: createHasNewPostfachNachrichtClientAttribute(true), - [ClientAttributeNameE2E.HAS_POSTFACH_NACHRICHT]: createHasPostfachNachrichtClientAttribute(true) - } - }; - const vorgang: VorgangE2E = createVorgang(); - const vorgangWithReply: VorgangE2E = { ...buildVorgang(objectIds[0], 'VorgangWithReply'), clientAttributes }; + const vorgangWithReply: VorgangE2E = { ...buildVorgang(objectIds[0], 'VorgangWithReply') }; const postfachMailReply: PostfachMailItemE2E = createPostfachNachrichtReplyItem(); - const postfachNachrichtAttachedItem: VorgangAttachedItemE2E = { ...createPostfachNachrichtAttachedItem(objectIds[1], vorgangWithReply._id.$oid), item: postfachMailReply }; + const postfachNachrichtAttachedItem: VorgangAttachedItemE2E = { ...createPostfachNachrichtAttachedItem(objectIds[1], objectIds[0]), item: postfachMailReply }; before(() => { initVorgaenge([vorgang, vorgangWithReply]); @@ -122,6 +115,7 @@ describe('Postfach Nachrichten', () => { it ('should show an overview of all nachrichten after clicking on nachricht', () => { postfachMailContainer.getList().click(); waitForSpinnerToDisappear(); + exist(postfachMailPage.getRoot()); })