adapt lenguage dependent selectors on page object files

This commit is contained in:
mahula 2022-09-21 18:25:06 +02:00
parent aecf84f5ca
commit 9469ce9897
2 changed files with 5 additions and 5 deletions

View File

@ -4,8 +4,8 @@ export class ProfilePage {
// selectors // selectors
openChangePassword = "[data-test=open-password-change-form]"; openChangePassword = "[data-test=open-password-change-form]";
oldPasswordInput = "#password-input-field"; oldPasswordInput = "#password-input-field";
newPasswordInput = "#Neues-Passwort-input-field"; newPasswordInput = "#New-password-input-field";
newPasswordRepeatInput = "#Neues-Passwort-wiederholen-input-field"; newPasswordRepeatInput = "#Repeat-new-password-input-field";
submitNewPasswordBtn = "[data-test=submit-new-password-btn]"; submitNewPasswordBtn = "[data-test=submit-new-password-btn]";
goto() { goto() {

View File

@ -3,9 +3,9 @@ import { Toasts } from "../../e2e/models/Toasts";
Then("the user cannot login", () => { Then("the user cannot login", () => {
const toast = new Toasts(); 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( cy.get(toast.toastMessage).should(
"contain.text", "contain.text",
"Kein Benutzer mit diesen Anmeldedaten." "No user with this credentials."
); // 'No user with this credentials.' );
}); });