PromucFlow_constructor/app/client/cypress/locators/AdminsSettings.js
Parthvi 85cb2f1c18
test: Add cypress tests for upgrade button redirection to pricing page (#21772)
## Description

Add cypress tests for upgrade button redirection to pricing page under
admin settings.

## Type of change

## How Has This Been Tested?

- Cypress

---------

Co-authored-by: Parthvi Goswami <parthvigoswami@Parthvis-MacBook-Pro.local>
2023-03-28 01:05:30 +05:30

35 lines
1.7 KiB
JavaScript

export default {
Tabs: ".t--settings-category-list",
generalTab: ".t--settings-category-general",
advancedTab: ".t--settings-category-advanced",
authenticationTab: ".t--settings-category-authentication",
emailTab: ".t--settings-category-email",
googleMapsTab: ".t--settings-category-google-maps",
googleButton: ".t--settings-sub-category-google-auth",
githubButton: ".t--settings-sub-category-github-auth",
formloginButton: ".t--settings-sub-category-form-login",
readMoreLink: ".t--read-more-link",
versionTab: ".t--settings-category-version",
backButton: ".t--admin-settings-back-button",
saveButton: ".t--admin-settings-save-button",
resetButton: ".t--admin-settings-reset-button",
textInput: ".t--admin-settings-text-input input",
instanceName: ".t--admin-settings-APPSMITH_INSTANCE_NAME input",
adminEmails: ".t--admin-settings-APPSMITH_ADMIN_EMAILS input",
fromAddress: ".t--admin-settings-APPSMITH_MAIL_FROM input",
restartNotice: ".t--admin-settings-restart-notice",
appsmithLogo: ".t--appsmith-logo",
appsmithHeader: "[data-testid='t--appsmith-page-header']",
loginWithGoogle: "[data-testid='login-with-Google']",
loginWithGithub: "[data-testid='login-with-Github']",
disconnectBtn: "[data-testid='disconnect-service-button']",
formSignupDisabled: "[data-cy='APPSMITH_SIGNUP_DISABLED']",
formLoginDisabled: "[data-cy='APPSMITH_FORM_LOGIN_DISABLED']",
embedSettings: ".t--admin-settings-APPSMITH_ALLOWED_FRAME_ANCESTORS",
upgrade: "//span[text()='UPGRADE']",
accessControl:
"[data-testid='t--enterprise-settings-category-item-access-control']",
auditLogs: "[data-testid='t--enterprise-settings-category-item-audit-logs']",
upgrageLeftPane: "[data-testid='t--enterprise-settings-category-item-be']",
};