diff --git a/alfa-client/apps/admin-e2e/src/components/organisationseinheiten/organisationseinheiten.e2e.component.ts b/alfa-client/apps/admin-e2e/src/components/organisationseinheiten/organisationseinheiten.e2e.component.ts deleted file mode 100644 index cb9942a8cc0dba8319587c86a46bd4b947f2fed6..0000000000000000000000000000000000000000 --- a/alfa-client/apps/admin-e2e/src/components/organisationseinheiten/organisationseinheiten.e2e.component.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { exist, haveValue, typeText } from '../../support/cypress.util'; - -export class OrganisationseinheitenE2EComponent { - private readonly einheitenList: string = 'organisations-einheit-list'; - private readonly einheitenItem: string = 'organisations-einheit-list-item'; - - public getOETable(): Cypress.Chainable<Element> { - return cy.getTestElement(this.einheitenList); - } - - public getOEItemsList(): Cypress.Chainable<JQuery<HTMLElement>> { - return cy.getTestElement(this.einheitenItem); - } - - public getOEItem(value: number): Cypress.Chainable<JQuery<HTMLElement>> { - return this.getOEItemsList().get(value); - } - - public stringExistsInOEEntryNumber(phrase: string, user: string): void { - this.getUserEntry(user).within(() => { - exist(cy.contains(phrase)); - }); - } - - public getSignaturText(): Cypress.Chainable<JQuery<HTMLElement>> { - return cy.getTestElement(this.signaturText); - } - - public setSignatur(signatur: string): void { - typeText(this.getSignaturText(), signatur); - } - - public clearSignatur(): void { - this.getSignaturText().type('{selectAll}{del}'); - } - - public getSaveButton(): Cypress.Chainable<Element> { - return cy.getTestElement(this.saveSignaturButton); - } - - public saveSignatur(): void { - this.getSaveButton().click(); - } - - public signatureIs(compare: string): void { - haveValue(this.getSignaturText(), compare); - } - - public scrollbarIsPresent(): void { - this.getSignaturText().then((textarea) => { - const scrollHeight: number = textarea[0].scrollHeight; - const clientHeight: number = textarea[0].clientHeight; - - expect(scrollHeight).to.be.greaterThan(clientHeight); - }); - } -} diff --git a/alfa-client/apps/admin-e2e/src/e2e/organisationseinheiten/organisationseinheiten-laden.cy.ts b/alfa-client/apps/admin-e2e/src/e2e/organisationseinheiten/organisationseinheiten-laden.cy.ts deleted file mode 100644 index 4e2bf657a6fdda59d4c014cef3830d43148e4890..0000000000000000000000000000000000000000 --- a/alfa-client/apps/admin-e2e/src/e2e/organisationseinheiten/organisationseinheiten-laden.cy.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { OrganisationseinheitenE2EComponent } from '../../components/organisationseinheiten/organisationseinheiten.e2e.component'; -import { MainPage, waitForSpinnerToDisappear } from '../../page-objects/main.po'; -import { exist } from '../../support/cypress.util'; -import { loginAsAriane } from '../../support/user-util'; - -describe('Signatur', () => { - const mainPage: MainPage = new MainPage(); - const organisationseinheitenTab: OrganisationseinheitenE2EComponent = new OrganisationseinheitenE2EComponent(); - - before(() => { - loginAsAriane(); - }); - - it('should show table of Organisationseinheiten', () => { - waitForSpinnerToDisappear(); - mainPage.clickOrganisationseinheitenTab(); - - exist(organisationseinheitenTab.getOETable()); - }); - - it('should show defined data ', () => { - organisationseinheitenTab.stringExistsInOEEntryNumber(); - }); -});