From 121aec44e8fc97ae00371f500aab3528d77f3495 Mon Sep 17 00:00:00 2001 From: Albert <Albert.Bruns@mgm-tp.com> Date: Mon, 3 Feb 2025 12:05:40 +0100 Subject: [PATCH] OZG-7166-7535 E2E tests --- .../admin-e2e/src/e2e/main-tests/app/0-login-logout.cy.ts | 5 +++++ alfa-client/apps/admin-e2e/src/page-objects/login.po.ts | 5 +++++ .../apps/alfa-e2e/src/e2e/main-tests/app/login-logout.cy.ts | 4 ++++ alfa-client/apps/alfa-e2e/src/page-objects/login.po.ts | 5 +++++ 4 files changed, 19 insertions(+) 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 d4067cb06b..ae9c4f20af 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 73005caaf6..06d4e16aff 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 4cb982be46..8798e0e610 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 73005caaf6..06d4e16aff 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); + } } -- GitLab