diff --git a/alfa-client/apps/admin-e2e/src/e2e/main-tests/app/0-login-logout.cy.ts b/alfa-client/apps/admin-e2e/src/e2e/main-tests/app/0-login-logout.cy.ts index d4067cb06bb94921c136532a39f4c6433cb505c4..ae9c4f20affd9287f21b01ce276815cf7d1767c3 100644 --- a/alfa-client/apps/admin-e2e/src/e2e/main-tests/app/0-login-logout.cy.ts +++ b/alfa-client/apps/admin-e2e/src/e2e/main-tests/app/0-login-logout.cy.ts @@ -38,6 +38,11 @@ describe('Login and Logout', () => { exist(loginPage.getBarrierefreiheitLink()); }); + it('should display impressum link', () => { + cy.visit(''); + exist(loginPage.getImpressumLink()); + }); + it('login as Ariane', () => { Cypress.session.clearAllSavedSessions(); diff --git a/alfa-client/apps/admin-e2e/src/page-objects/login.po.ts b/alfa-client/apps/admin-e2e/src/page-objects/login.po.ts index 73005caaf69cb0be2990541fdabe003326a20153..06d4e16aff7ddedece33525e873b57930765e360 100644 --- a/alfa-client/apps/admin-e2e/src/page-objects/login.po.ts +++ b/alfa-client/apps/admin-e2e/src/page-objects/login.po.ts @@ -1,6 +1,7 @@ export class LoginPage { private readonly locatorLogin: string = '#kc-login'; private readonly locatorBarrierefreiheitLink: string = '#kc-barrierefreiheit'; + private readonly locatorImpressumLink: string = '#kc-impressum'; public getLogin(): Cypress.Chainable<JQuery<HTMLElement>> { return cy.get(this.locatorLogin); @@ -9,4 +10,8 @@ export class LoginPage { public getBarrierefreiheitLink(): Cypress.Chainable<JQuery<HTMLElement>> { return cy.get(this.locatorBarrierefreiheitLink); } + + public getImpressumLink(): Cypress.Chainable<JQuery<HTMLElement>> { + return cy.get(this.locatorImpressumLink); + } } diff --git a/alfa-client/apps/alfa-e2e/src/e2e/main-tests/app/login-logout.cy.ts b/alfa-client/apps/alfa-e2e/src/e2e/main-tests/app/login-logout.cy.ts index 4cb982be465e67ec951ab13c7688776da2c6dc32..8798e0e610b10f00af9e8a1511f2ad8106674c6d 100644 --- a/alfa-client/apps/alfa-e2e/src/e2e/main-tests/app/login-logout.cy.ts +++ b/alfa-client/apps/alfa-e2e/src/e2e/main-tests/app/login-logout.cy.ts @@ -47,6 +47,10 @@ describe('Login and Logout', () => { exist(loginPage.getBarrierefreiheitLink()); }); + it('should display impressum link', () => { + exist(loginPage.getImpressumLink()); + }); + it('login as test user', () => { cy.visit('') .get('#kc-login') diff --git a/alfa-client/apps/alfa-e2e/src/page-objects/login.po.ts b/alfa-client/apps/alfa-e2e/src/page-objects/login.po.ts index 73005caaf69cb0be2990541fdabe003326a20153..06d4e16aff7ddedece33525e873b57930765e360 100644 --- a/alfa-client/apps/alfa-e2e/src/page-objects/login.po.ts +++ b/alfa-client/apps/alfa-e2e/src/page-objects/login.po.ts @@ -1,6 +1,7 @@ export class LoginPage { private readonly locatorLogin: string = '#kc-login'; private readonly locatorBarrierefreiheitLink: string = '#kc-barrierefreiheit'; + private readonly locatorImpressumLink: string = '#kc-impressum'; public getLogin(): Cypress.Chainable<JQuery<HTMLElement>> { return cy.get(this.locatorLogin); @@ -9,4 +10,8 @@ export class LoginPage { public getBarrierefreiheitLink(): Cypress.Chainable<JQuery<HTMLElement>> { return cy.get(this.locatorBarrierefreiheitLink); } + + public getImpressumLink(): Cypress.Chainable<JQuery<HTMLElement>> { + return cy.get(this.locatorImpressumLink); + } }