mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-05 22:38:48 +00:00
* Added cypress test for profile settings page * Updated common selectors * Updated common text * Added functions for random names * Added data-cy attributes for components * Added verification for the input value * Added password field validation * Added common utils file * Added wait * Updated login error toast
14 lines
No EOL
430 B
JavaScript
14 lines
No EOL
430 B
JavaScript
import { path } from "Texts/common";
|
|
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);
|
|
}; |