mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
* Added cypress test for manage users page * Updated common text file * Updated common utils file * Added data-cy attributes for the elements * Modified cypress test for manage users * Added data-cy attributes for elements
21 lines
No EOL
663 B
JavaScript
21 lines
No EOL
663 B
JavaScript
import { path } from "Texts/common";
|
|
import { usersSelector } from "Selectors/manageUsers";
|
|
import { profileSelector } from "Selectors/profile";
|
|
|
|
export const navigateToProfile=()=>{
|
|
cy.get(profileSelector.profileDropdown).invoke("show");
|
|
cy.contains("Profile").click();
|
|
cy.url().should("include", path.profilePath);
|
|
};
|
|
|
|
export const logout=()=>{
|
|
cy.get(profileSelector.profileDropdown).invoke("show");
|
|
cy.contains("Logout").click();
|
|
cy.url().should("include",path.loginPath);
|
|
};
|
|
|
|
export const navigateToManageUsers=()=>{
|
|
cy.get(usersSelector.dropdown).invoke("show");
|
|
cy.contains("Manage Users").click();
|
|
cy.url().should("include",path.manageUsers );
|
|
}; |