From 9469ce98973baadd639b9122b32a4bb3971d2f1c Mon Sep 17 00:00:00 2001 From: mahula Date: Wed, 21 Sep 2022 18:25:06 +0200 Subject: [PATCH] adapt lenguage dependent selectors on page object files --- e2e-tests/cypress/tests/cypress/e2e/models/ProfilePage.ts | 4 ++-- .../support/step_definitions/the_user_cannot_login.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/e2e-tests/cypress/tests/cypress/e2e/models/ProfilePage.ts b/e2e-tests/cypress/tests/cypress/e2e/models/ProfilePage.ts index 51fba2b90..b280a0b2a 100644 --- a/e2e-tests/cypress/tests/cypress/e2e/models/ProfilePage.ts +++ b/e2e-tests/cypress/tests/cypress/e2e/models/ProfilePage.ts @@ -4,8 +4,8 @@ export class ProfilePage { // selectors openChangePassword = "[data-test=open-password-change-form]"; oldPasswordInput = "#password-input-field"; - newPasswordInput = "#Neues-Passwort-input-field"; - newPasswordRepeatInput = "#Neues-Passwort-wiederholen-input-field"; + newPasswordInput = "#New-password-input-field"; + newPasswordRepeatInput = "#Repeat-new-password-input-field"; submitNewPasswordBtn = "[data-test=submit-new-password-btn]"; goto() { diff --git a/e2e-tests/cypress/tests/cypress/support/step_definitions/the_user_cannot_login.ts b/e2e-tests/cypress/tests/cypress/support/step_definitions/the_user_cannot_login.ts index bec4e5f30..1f38747fe 100644 --- a/e2e-tests/cypress/tests/cypress/support/step_definitions/the_user_cannot_login.ts +++ b/e2e-tests/cypress/tests/cypress/support/step_definitions/the_user_cannot_login.ts @@ -3,9 +3,9 @@ import { Toasts } from "../../e2e/models/Toasts"; Then("the user cannot login", () => { const toast = new Toasts(); - cy.get(toast.toastTitle).should("contain.text", "Fehler!"); // 'Error!' + cy.get(toast.toastTitle).should("contain.text", "Error!"); cy.get(toast.toastMessage).should( "contain.text", - "Kein Benutzer mit diesen Anmeldedaten." - ); // 'No user with this credentials.' + "No user with this credentials." + ); });