ToolJet/cypress-tests/cypress/constants/selectors/manageSSO.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

55 lines
2.7 KiB
JavaScript

export const ssoSelector = {
pagetitle: "[data-cy=manage-sso-page-title]",
generalSettingsElements: {
generalSettings: '[data-cy="general-settings-list-item"]',
enableSignupLabel: '[data-cy="enable-sign-up-label"]',
helperText: "[data-cy=enable-sign-up-helper-text]",
allowDefaultSSOLabel: '[data-cy="allow-default-sso-label"]',
allowDefaultSSOHelperText: '[data-cy="allow-default-sso-helper-text"]',
allowedDomainLabel: "[data-cy=allowed-domains-label]",
allowedDomainHelperText: '[data-cy="allowed-domain-helper-text"]',
workspaceLoginUrl: '[data-cy="workspace-login-url-label"]',
workspaceLoginHelpText: '[data-cy="workspace-login-help-text"]',
},
cardTitle: "[data-cy=card-title]",
enableSignUpToggle: '[data-cy="enable-sign-up-toggle"]',
allowDefaultSSOToggle: '[data-cy="allow-default-sso-toggle"]',
defaultSSOImage: '[data-cy="default-sso-status-image"]',
allowedDomainInput: "[data-cy=allowed-domain-input]",
workspaceLoginUrl: '[data-cy="workspace-login-url"]',
cancelButton: "[data-cy=cancel-button]",
saveButton: "[data-cy=save-button]",
google: '[data-cy="google-list-item"]',
googleEnableToggle: '[data-cy="google-enable-toggle"]',
statusLabel: "[data-cy=status-label]",
clientIdLabel: "[data-cy=client-id-label]",
clientIdInput: "[data-cy=client-id-input]",
redirectUrlLabel: "[data-cy=redirect-url-label]",
redirectUrl: "[data-cy=redirect-url]",
googleTile: '[data-cy="google-sign-in-text"]',
googleIcon: "[data-cy=google-sso-icon]",
googleSSOText: "[data-cy=google-sso-text]",
git: '[data-cy="github-list-item"]',
gitEnableToggle: '[data-cy="github-toggle-input"]',
githubLabel: '[data-cy="github-toggle-label"]',
clientSecretLabel: "[data-cy=client-secret-label]",
encriptedLabel: "[data-cy=encripted-label]",
clientSecretInput: "[data-cy=client-secret-input]",
gitTile: "[data-cy=git-tile]",
gitIcon: "[data-cy=git-sso-icon]",
gitSignInText: "[data-cy=git-sso-text]",
gitSSOText: "[data-cy=git-sso-text]",
password: "[data-cy=left-menu-items] :eq(3)",
passwordEnableToggle: '[data-cy="password-enable-toggle"]',
loginHelpText: "[data-cy=login-help-text]",
allowedDomainHelpText: "[data-cy=allowed-domain-help-text]",
hostNameLabel: '[data-cy="host-name-label"]',
hostNameInput: '[data-cy="host-name-input"]',
hostNameHelpText: '[data-cy="git-sso-help-text"]',
signInHeader: '[data-cy="sign-in-header"]',
workspaceSubHeader: '[data-cy="workspace-sign-in-sub-header"]',
noLoginMethodWarning: '[data-cy="no-login-methods-warning"]',
passwordLoginToggleLbale: '[data-cy="label-password-login"]',
alertText: '[data-cy="alert-text"]',
disablePasswordHelperText: '[data-cy="disable-password-helper-text"]',
};