From ba571b9f831495966bafccd0c5ee50982c10dd58 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Tue, 31 May 2022 14:17:00 +0200 Subject: [PATCH] =?UTF-8?q?OZG-1274=20OZG-1342=20E2E=20Tests=20f=C3=BCr=20?= =?UTF-8?q?Briefumschlag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/vorgang/vorgang-item.e2e.component.ts | 5 +++++ .../postfach-mail/postfach-mail.e2e-spec.ts | 12 ++++++++++++ goofy-client/apps/goofy-e2e/src/model/vorgang.ts | 1 + 3 files changed, 18 insertions(+) diff --git a/goofy-client/apps/goofy-e2e/src/components/vorgang/vorgang-item.e2e.component.ts b/goofy-client/apps/goofy-e2e/src/components/vorgang/vorgang-item.e2e.component.ts index 7f3acb746b..153af72a3a 100644 --- a/goofy-client/apps/goofy-e2e/src/components/vorgang/vorgang-item.e2e.component.ts +++ b/goofy-client/apps/goofy-e2e/src/components/vorgang/vorgang-item.e2e.component.ts @@ -4,6 +4,7 @@ import { UserProfileE2EComponent } from '../user-profile/user-profile.component. export class VorgangListItemE2EComponent { private readonly locatorStatus: string = 'status-text'; + private readonly locatorPostfachStatus: string = 'postfach-status'; private readonly locatorWiedervorlageNextFrist: string = 'wiedervorlage-next-frist'; private readonly locatorWiedervorlagenList: string = 'wiedervorlagen-list-in-vorgang'; @@ -21,6 +22,10 @@ export class VorgangListItemE2EComponent { return this.getRoot().findTestElementWithClass(this.locatorStatus); } + public getPostfachStatus() { + return this.getRoot().findTestElementWithClass(this.locatorPostfachStatus); + } + public getWiedervorlageNextFrist() { return this.getRoot().findTestElementWithClass(this.locatorWiedervorlageNextFrist); } 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 8390ddd844..63ee7d0fd5 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 @@ -60,6 +60,12 @@ describe('PostfachMail', () => { dropCollections(); }) + describe('mail icon', () => { + it('should not be visible', () => { + notExist(vorgangList.getListItem(vorgang.name).getPostfachStatus()); + }) + }) + describe('navigate to vorgang detail', () => { it('should open vorgang detail', () => { @@ -297,6 +303,12 @@ describe('PostfachMail', () => { exist(vorgangList.getRoot()); }) }) + + describe('mail icon', () => { + it('should be visible', () => { + exist(vorgangList.getListItem(vorgang.name).getPostfachStatus()); + }) + }) }) describe('navigate to vorgang detail', () => { diff --git a/goofy-client/apps/goofy-e2e/src/model/vorgang.ts b/goofy-client/apps/goofy-e2e/src/model/vorgang.ts index b5f743835f..4cf314d1fb 100644 --- a/goofy-client/apps/goofy-e2e/src/model/vorgang.ts +++ b/goofy-client/apps/goofy-e2e/src/model/vorgang.ts @@ -36,6 +36,7 @@ export class VorgangE2E { kommentars: KommentarE2E[]; assignedTo: ResourceUriE2E; clientAttributes: ClientAttributesE2E; + hasPostfachNachricht: boolean; } export class EingangE2E { -- GitLab