Skip to content
Snippets Groups Projects
Commit 59430c37 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-928 add Test for prefilled zustaendige Stelle

parent efd5cd14
No related branches found
No related tags found
No related merge requests found
...@@ -114,11 +114,14 @@ ...@@ -114,11 +114,14 @@
"telefonnummer": "04621 87-0", "telefonnummer": "04621 87-0",
"b_zustellung": "Ich hole den Kleinen Waffenschein selbst ab.", "b_zustellung": "Ich hole den Kleinen Waffenschein selbst ab.",
"OrganisationseinheitenBEZEICHNUNG": "Kreis\n\t\t\tSchleswig-Flensburg/Kreisverwaltung - Allgemeine\n\t\t\tOrdnungsangelegenheiten", "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", "logourl": "http://wafmxpa002.dpaor.de/sh/logos/kopf_9068873.doc",
"AnliegenID": "8966671" "AnliegenID": "8966671"
}, },
"zustaendigeStelle": {
"email": "test@test.de"
},
"attachments": [], "attachments": [],
"representations": [], "representations": [],
"numberOfAttachments": 0, "numberOfAttachments": 0,
...@@ -243,11 +246,15 @@ ...@@ -243,11 +246,15 @@
"telefonnummer": "04621 87-0", "telefonnummer": "04621 87-0",
"b_zustellung": "Ich hole den Kleinen Waffenschein selbst ab.", "b_zustellung": "Ich hole den Kleinen Waffenschein selbst ab.",
"OrganisationseinheitenBEZEICHNUNG": "Kreis\n\t\t\tSchleswig-Flensburg/Kreisverwaltung - Allgemeine\n\t\t\tOrdnungsangelegenheiten", "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", "logourl": "http://wafmxpa002.dpaor.de/sh/logos/kopf_9068873.doc",
"AnliegenID": "8966671" "AnliegenID": "8966671"
}, },
"zustaendigeStelle": {
"email": "test@test.de"
},
"attachments": [], "attachments": [],
"representations": [], "representations": [],
"numberOfAttachments": 0, "numberOfAttachments": 0,
......
...@@ -3,7 +3,7 @@ import { VorgangListE2EComponent } from '../../components/vorgang/vorgang-list.e ...@@ -3,7 +3,7 @@ import { VorgangListE2EComponent } from '../../components/vorgang/vorgang-list.e
import { VorgangE2E, VorgangStatusE2E, vorgangStatusLabelE2E } from '../../model/vorgang'; import { VorgangE2E, VorgangStatusE2E, vorgangStatusLabelE2E } from '../../model/vorgang';
import { MainPage } from '../../page-objects/main.po'; import { MainPage } from '../../page-objects/main.po';
import { VorgangPage } from '../../page-objects/vorgang.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'; import { FORWARDING_TEST_EMAIL } from '../../support/data.util';
describe('Vorgang forwarding', () => { describe('Vorgang forwarding', () => {
...@@ -42,6 +42,10 @@ describe('Vorgang forwarding', () => { ...@@ -42,6 +42,10 @@ describe('Vorgang forwarding', () => {
it('should show forwarding', () => { it('should show forwarding', () => {
exist(forwardingContainer.getRoot()); exist(forwardingContainer.getRoot());
}) })
it('should be prefilled', () => {
haveValue(forwardingContainer.getFormular().getZustaendigeStelle(), 'test@test.de');
})
}) })
describe('fill forward formular', () => { describe('fill forward formular', () => {
......
...@@ -117,6 +117,6 @@ ...@@ -117,6 +117,6 @@
"typescript": "4.2.4" "typescript": "4.2.4"
}, },
"optionalDependencies": { "optionalDependencies": {
"cypress": "7.5.0" "cypress": "7.6.0"
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment