mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
37 lines
1.1 KiB
JavaScript
37 lines
1.1 KiB
JavaScript
import { profileSelector } from "Selectors/profile";
|
|
import { profileText } from "Texts/profile";
|
|
|
|
export const profilePageElements = () => {
|
|
for (const elements in profileSelector.profileElements) {
|
|
cy.get(profileSelector.profileElements[elements]).verifyVisibleElement(
|
|
"have.text",
|
|
profileText.profileElements[elements]
|
|
);
|
|
}
|
|
cy.get(profileSelector.updateButton).verifyVisibleElement(
|
|
"have.text",
|
|
profileText.updateButton
|
|
);
|
|
cy.get(profileSelector.changePasswordButton).verifyVisibleElement(
|
|
"have.text",
|
|
profileText.changePasswordButton
|
|
);
|
|
cy.get(profileSelector.firstNameInput).verifyVisibleElement(
|
|
"have.value",
|
|
profileText.firstName
|
|
);
|
|
cy.get(profileSelector.lastNameInput).verifyVisibleElement(
|
|
"have.value",
|
|
profileText.lastName
|
|
);
|
|
cy.get(profileSelector.emailInput).verifyVisibleElement(
|
|
"have.value",
|
|
profileText.email
|
|
);
|
|
cy.get(profileSelector.currentPasswordField)
|
|
.should("be.visible")
|
|
.should("be.visible");
|
|
cy.get(profileSelector.newPasswordField)
|
|
.should("be.visible")
|
|
.should("be.visible");
|
|
};
|