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
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() {

View File

@ -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."
);
});