mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
adapt lenguage dependent selectors on page object files
This commit is contained in:
parent
aecf84f5ca
commit
9469ce9897
@ -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() {
|
||||||
|
|||||||
@ -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.'
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user