Skip to content
Snippets Groups Projects
Commit d2df66c4 authored by Cord Westhoff's avatar Cord Westhoff
Browse files

change OE name for test

parent d2f5b6f3
Branches
Tags
1 merge request!55E2 e updates
......@@ -13,7 +13,7 @@ describe('Organisationseinheit zu Benutzer hinzufügen', () => {
const zustaendigeStelleSearchComponent: ZustaendigeStelleDialogE2EComponent = new ZustaendigeStelleDialogE2EComponent();
const organistationsEinheitOrdnungsamt: string = 'Ordnungsamt';
const organisationsEinheitDenkmalpflege: string = 'Denkmalpflege';
const organisationsEinheitWentorf: string = 'Liegenschaften';
const organisationsEinheitLiegenschaften: string = 'Liegenschaften';
const organisationsEinheitNone: string = 'keine zuständige Stelle zugewiesen';
const vorname: string = 'Theo';
const nachname: string = 'Testuser';
......@@ -91,7 +91,7 @@ describe('Organisationseinheit zu Benutzer hinzufügen', () => {
it('should enable new Organisationseinheit for users after adding it', () => {
mainPage.clickOrganisationsEinheitenNavigationItem();
organisationsEinheitenComponent.clickHinzufuegen();
zustaendigeStelleSearchComponent.enterSearchTerm(organisationsEinheitWentorf);
zustaendigeStelleSearchComponent.enterSearchTerm(organisationsEinheitLiegenschaften);
zustaendigeStelleSearchComponent.getZustaendigeStelleTitle(0).then((title: string) => {
zustaendigeStelleSearchComponent.clickFoundItem(0);
});
......@@ -99,12 +99,12 @@ describe('Organisationseinheit zu Benutzer hinzufügen', () => {
mainPage.clickBenutzerNavigationItem();
benutzerPage.clickUserEntry(benutzername2);
exist(benutzerPage.getOrganisationsEinheitCheckbox(organisationsEinheitWentorf));
exist(benutzerPage.getOrganisationsEinheitCheckbox(organisationsEinheitLiegenschaften));
});
it('should add new Organisationseinheit to existing user', () => {
benutzerPage.clickOrganisationsEinheitCheckbox(organistationsEinheitOrdnungsamt);
benutzerPage.clickOrganisationsEinheitCheckbox(organisationsEinheitLiegenschaften);
benutzerPage.saveUser();
benutzerPage.stringExistsInUserEntry(organisationsEinheitWentorf, benutzername2);
benutzerPage.stringExistsInUserEntry(organisationsEinheitLiegenschaften, benutzername2);
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment