From fb4a3bb1da1fa403fa7d7725ae13a62499f1cb39 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Thu, 2 Mar 2023 23:51:54 +0100 Subject: [PATCH] adjust header structure to fix e2e postfachmail tests --- .../apps/goofy-e2e/src/fixtures/vorgang/vorgang.json | 2 +- .../main-tests/postfach-mail/postfach-mail.e2e-spec.ts | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/goofy-client/apps/goofy-e2e/src/fixtures/vorgang/vorgang.json b/goofy-client/apps/goofy-e2e/src/fixtures/vorgang/vorgang.json index c430e695bf..2de28060fa 100644 --- a/goofy-client/apps/goofy-e2e/src/fixtures/vorgang/vorgang.json +++ b/goofy-client/apps/goofy-e2e/src/fixtures/vorgang/vorgang.json @@ -14,7 +14,7 @@ "header": { "serviceKonto": { "type": "OSI", - "postfachAddress": [{ + "postfachAddresses": [{ "type": 1, "identifier": { "postfachId": "04d39269-81c5-4838-8b73-08d9567f06d7" diff --git a/goofy-client/apps/goofy-e2e/src/integration/main-tests/postfach-mail/postfach-mail.e2e-spec.ts b/goofy-client/apps/goofy-e2e/src/integration/main-tests/postfach-mail/postfach-mail.e2e-spec.ts index 99844d505e..d440432455 100644 --- a/goofy-client/apps/goofy-e2e/src/integration/main-tests/postfach-mail/postfach-mail.e2e-spec.ts +++ b/goofy-client/apps/goofy-e2e/src/integration/main-tests/postfach-mail/postfach-mail.e2e-spec.ts @@ -30,7 +30,7 @@ import { FixedDialogE2EComponent } from '../../../components/ui/fixed-dialog.e2e import { SnackBarE2EComponent } from '../../../components/ui/snackbar.e2e.component'; import { VorgangListE2EComponent } from '../../../components/vorgang/vorgang-list.e2e.component'; import { VorgangSubnavigationE2EComponent } from '../../../components/vorgang/vorgang-subnavigation'; -import { ClientAttributeNameE2E, ClientAttributesE2E, EingangE2E, VorgangE2E } from '../../../model/vorgang'; +import { ClientAttributeNameE2E, ClientAttributesE2E, VorgangE2E } from '../../../model/vorgang'; import { PostfachMailItemE2E, PostfachNachrichtSnackbarMessageE2E, VorgangAttachedItemClientE2E, VorgangAttachedItemE2E } from '../../../model/vorgang-attached-item'; import { MainPage, waitForSpinnerToDisappear } from '../../../page-objects/main.po'; import { PostfachMailPage } from '../../../page-objects/postfach-mail.component.po'; @@ -70,8 +70,7 @@ describe('PostfachMail', () => { const vorgangWithoutPostfach: VorgangE2E = createVorgangWithoutPostfachId(); function createVorgangWithoutPostfachId(): VorgangE2E { - const eingangWithoutPostfachId: EingangE2E = { ...vorgang.eingangs[0], antragsteller: { ...vorgang.eingangs[0].antragsteller, postfachId: '' } }; - return { ...buildVorgang(objectIds[2], 'VorgangWithoutPostfachId'), eingangs: [eingangWithoutPostfachId] }; + return { ...buildVorgang(objectIds[2], 'VorgangWithoutPostfachId'), eingangs: [...vorgang.eingangs], header: { serviceKonto: null} }; } const postfachMailReply: PostfachMailItemE2E = createPostfachNachrichtReplyItem(); -- GitLab