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 7f3acb746b5fb3327e32ad1576d3969bbd58854b..153af72a3ad7cc8e45678372dc17b7124a266f1c 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 8390ddd8440e61f1a4727a1b9a24d268400bb083..63ee7d0fd571d2ae8748978b8e57b100a507fe77 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 b5f743835fd97be66dd97ce0cef564b496a0c914..4cf314d1fb695f7a27ba5b452c46797a83636974 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 {