ToolJet/cypress-tests/cypress/constants/selectors/profile.js
Ajith KV 142d54bc50
Fixed failing profile cypress spec (#6245)
* Fix failed profile spec

* Modify data-cy of the dashboard section header

* Fix manage users spec

* Fix user permission spec

* Remove single workspace cypress test cases

* Add indentation changes

* Update self host signup spec

* Update cypress config file

* adding changes to capture downloads

* fix cypress tests for actions

* fecth invitation url from the database

* database test commit

* test commit

* test commit

* test commit

* test commit for pg host

* test commit

* commit for screenshot

* revert test commits

* Update sql task name

* Add changes for actions

* Fix manage groups spec

* Update folder structure

* Fix user permission spec

---------

Co-authored-by: Adish M <[email protected]>
2023-05-09 19:33:37 +05:30

26 lines
1.2 KiB
JavaScript

export const profileSelector = {
profileDropdown: "[data-cy=dropdown-menu]",
profileLink: "[data-cy=profile-link]",
logoutLink: "[data-cy=logout-link]",
profileElements: {
pageTitle: '[data-cy="dashboard-section-header"]',
profileCard: "[data-cy=card-title-profile]",
firstNameLabel: "[data-cy=first-name-label]",
lastNameLabel: "[data-cy=last-name-label]",
emailLabel: "[data-cy=email-label]",
avatarLabel: '[data-cy="avatar-label"]',
passwordCard: "[data-cy=card-title-change-password]",
currentPasswordLabel: "[data-cy=current-password-label]",
newPasswordLabel: "[data-cy=new-password-label]",
confirmPasswordLabel: '[data-cy="confirm-password-label"]',
},
firstNameInput: "[data-cy=first-name-input]",
lastNameInput: "[data-cy=last-name-input]",
emailInput: "[data-cy=email-input]",
avatarUploadField: '[data-cy="avatar-upload-field"]',
updateButton: "[data-cy=update-button]",
changePasswordButton: "[data-cy=change-password-button]",
currentPasswordField: "[data-cy=current-password-input]",
newPasswordField: "[data-cy=new-password-input]",
confirmPasswordField: '[data-cy="confirm-password-input"]',
};