diff --git a/goofy-client/apps/goofy-e2e/src/fixtures/vorgang_forward_collection.json b/goofy-client/apps/goofy-e2e/src/fixtures/vorgang_forward_collection.json index 22d0f27cdc9acc214c9b9381f4b696e9e112be6a..45849bd9bd0afa56fb65a02f73f72e9f4e957535 100644 --- a/goofy-client/apps/goofy-e2e/src/fixtures/vorgang_forward_collection.json +++ b/goofy-client/apps/goofy-e2e/src/fixtures/vorgang_forward_collection.json @@ -114,11 +114,14 @@ "telefonnummer": "04621 87-0", "b_zustellung": "Ich hole den Kleinen Waffenschein selbst ab.", "OrganisationseinheitenBEZEICHNUNG": "Kreis\n\t\t\tSchleswig-Flensburg/Kreisverwaltung - Allgemeine\n\t\t\tOrdnungsangelegenheiten", - "ortID": "9007314" + "ortID": "9007314", "emailadresse": "emailadresse" }, "logourl": "http://wafmxpa002.dpaor.de/sh/logos/kopf_9068873.doc", "AnliegenID": "8966671" }, + "zustaendigeStelle": { + "email": "test@test.de" + }, "attachments": [], "representations": [], "numberOfAttachments": 0, @@ -243,11 +246,15 @@ "telefonnummer": "04621 87-0", "b_zustellung": "Ich hole den Kleinen Waffenschein selbst ab.", "OrganisationseinheitenBEZEICHNUNG": "Kreis\n\t\t\tSchleswig-Flensburg/Kreisverwaltung - Allgemeine\n\t\t\tOrdnungsangelegenheiten", - "ortID": "9007314" + "ortID": "9007314", + "emailadresse": "emailadresse" }, "logourl": "http://wafmxpa002.dpaor.de/sh/logos/kopf_9068873.doc", "AnliegenID": "8966671" }, + "zustaendigeStelle": { + "email": "test@test.de" + }, "attachments": [], "representations": [], "numberOfAttachments": 0, @@ -257,4 +264,4 @@ "_class": "de.itvsh.ozg.pluto.vorgang.Vorgang", "wiedervorlages": [] } -] \ No newline at end of file +] diff --git a/goofy-client/apps/goofy-e2e/src/integration/vorgang-detailansicht/vorgang-forward.e2e-spec.ts b/goofy-client/apps/goofy-e2e/src/integration/vorgang-detailansicht/vorgang-forward.e2e-spec.ts index 20e2118c1b1a4f983a5df125cf94ca142914cc01..be8af18a4e1f577c408d16576f2b785604d49ec8 100644 --- a/goofy-client/apps/goofy-e2e/src/integration/vorgang-detailansicht/vorgang-forward.e2e-spec.ts +++ b/goofy-client/apps/goofy-e2e/src/integration/vorgang-detailansicht/vorgang-forward.e2e-spec.ts @@ -3,7 +3,7 @@ import { VorgangListE2EComponent } from '../../components/vorgang/vorgang-list.e import { VorgangE2E, VorgangStatusE2E, vorgangStatusLabelE2E } from '../../model/vorgang'; import { MainPage } from '../../page-objects/main.po'; import { VorgangPage } from '../../page-objects/vorgang.po'; -import { CypressTasks, DatabaseUser, DataCollections, exist, haveText, MongoCollections, notExist } from '../../support/cypress.util'; +import { CypressTasks, DatabaseUser, DataCollections, exist, haveText, haveValue, MongoCollections, notExist } from '../../support/cypress.util'; import { FORWARDING_TEST_EMAIL } from '../../support/data.util'; describe('Vorgang forwarding', () => { @@ -42,6 +42,10 @@ describe('Vorgang forwarding', () => { it('should show forwarding', () => { exist(forwardingContainer.getRoot()); }) + + it('should be prefilled', () => { + haveValue(forwardingContainer.getFormular().getZustaendigeStelle(), 'test@test.de'); + }) }) describe('fill forward formular', () => { diff --git a/goofy-client/package.json b/goofy-client/package.json index 58da4210e8f87be397547325551f8d50b1a2ee47..317daf8c8628255d400f87425f62897ea7c57ab9 100644 --- a/goofy-client/package.json +++ b/goofy-client/package.json @@ -117,6 +117,6 @@ "typescript": "4.2.4" }, "optionalDependencies": { - "cypress": "7.5.0" + "cypress": "7.6.0" } }