2022-02-25 06:13:16 +00:00
|
|
|
export default {
|
|
|
|
|
CreateApp: "span[class='bp3-button-text']",
|
|
|
|
|
searchInput: "input[type='text']",
|
|
|
|
|
appEditIcon: ".t--application-edit-link",
|
|
|
|
|
publishButton: ".t--application-publish-btn",
|
|
|
|
|
shareButton: ".t--application-share-btn",
|
|
|
|
|
deployPopupOptionTrigger: ".t--deploy-popup-option-trigger",
|
|
|
|
|
connectToGitBtn: ".t--connect-to-git-btn",
|
|
|
|
|
currentDeployedPreviewBtn: ".t--current-deployed-preview-btn",
|
|
|
|
|
publishCrossButton: "span[icon='small-cross']",
|
|
|
|
|
homePageID: "//div[@id='root']",
|
2023-05-19 18:37:06 +00:00
|
|
|
appMoreIcon: ".t--application-card .ads-v2-button__content",
|
|
|
|
|
forkAppFromMenu: "[data-testid=t--fork-app]",
|
|
|
|
|
exportAppFromMenu: "[data-testid=t--export-app]",
|
2022-06-15 15:37:41 +00:00
|
|
|
forkAppWorkspaceButton: ".t--fork-app-to-workspace-button",
|
2022-02-25 06:13:16 +00:00
|
|
|
selectAction: "#Base",
|
2023-05-19 18:37:06 +00:00
|
|
|
deleteApp: "[data-testid=t--delete]",
|
2022-03-08 14:55:20 +00:00
|
|
|
createNewAppButton: ".t--new-button",
|
2023-05-19 18:37:06 +00:00
|
|
|
deleteAppConfirm: "[data-testid=t--delete-confirm]",
|
2022-02-25 06:13:16 +00:00
|
|
|
homeIcon: ".t--appsmith-logo",
|
|
|
|
|
inputAppName: "input[name=applicationName]",
|
|
|
|
|
createNew: ".createnew",
|
2024-01-25 13:41:48 +00:00
|
|
|
createWorkspace: "[data-testid=t--workspace-new-workspace-auto-create]",
|
2022-06-15 15:37:41 +00:00
|
|
|
inputWorkspaceName: "//input[@name='name']",
|
2022-02-25 06:13:16 +00:00
|
|
|
submitBtn: "//span[text()='Submit']",
|
2022-07-20 11:54:16 +00:00
|
|
|
workspaceMenu: "//span[text()='TestShareWorkspace']",
|
2022-02-25 06:13:16 +00:00
|
|
|
members: "//span[contains(text(),'Members')]",
|
|
|
|
|
share: "//span[contains(text(),'Share')]",
|
2022-07-20 11:54:16 +00:00
|
|
|
WorkspaceSettings: "//span[contains(text(),'Workspace Settings')]",
|
2022-02-25 06:13:16 +00:00
|
|
|
MemberSettings: "//span[contains(text(),'Members')]",
|
|
|
|
|
inviteUser: "//span[text()='Invite Users']",
|
2022-08-22 17:57:07 +00:00
|
|
|
inviteUserMembersPage: "[data-testid=t--page-header-input]",
|
2022-02-25 06:13:16 +00:00
|
|
|
email: "//input[@type='email']",
|
2023-05-19 18:37:06 +00:00
|
|
|
selectRole: "[data-testid='t--invite-role-input']",
|
|
|
|
|
adminRole: `//div[contains(@class, 'rc-select-item-option-content')]//span[1][text()='Administrator']`,
|
2022-02-25 06:13:16 +00:00
|
|
|
viewerRole:
|
2023-05-19 18:37:06 +00:00
|
|
|
"//div[contains(@class, 'rc-select-item-option-content')]//span[1][text()='App Viewer']",
|
2022-02-25 06:13:16 +00:00
|
|
|
developerRole:
|
2023-05-19 18:37:06 +00:00
|
|
|
"//div[contains(@class, 'rc-select-item-option-content')]//span[1][text()='Developer']",
|
2022-02-25 06:13:16 +00:00
|
|
|
inviteBtn: "//button//span[text()='Invite']",
|
|
|
|
|
manageUsers: ".manageUsers",
|
2023-05-19 18:37:06 +00:00
|
|
|
DeleteBtn: "[data-testid=t--deleteUser]",
|
2022-02-25 06:13:16 +00:00
|
|
|
ShareBtn: "//button//span[2][text()='Share']",
|
|
|
|
|
launchBtn: "//span[text()='Launch']",
|
|
|
|
|
appView: ".t--application-view-link",
|
|
|
|
|
applicationCard: ".t--application-card",
|
|
|
|
|
appsContainer: ".t--applications-container",
|
|
|
|
|
appHome: "//a[@href='/applications']",
|
|
|
|
|
emailList: "[data-colindex='0']",
|
2022-06-15 15:37:41 +00:00
|
|
|
workspaceList: ".t--workspace-section:contains(",
|
|
|
|
|
workspaceSectionBtn: ".t--workspace-section .bp3-button",
|
|
|
|
|
shareWorkspace: ") button:contains('Share')",
|
|
|
|
|
workspaceSection: "a:contains(",
|
|
|
|
|
createAppFrWorkspace: ") .t--new-button",
|
2022-02-25 06:13:16 +00:00
|
|
|
shareApp: ".t--application-share-btn",
|
2023-05-19 18:37:06 +00:00
|
|
|
enablePublicAccess:
|
|
|
|
|
"//div[contains(@class, 't--share-public-toggle')]//input[@role='switch']",
|
2023-06-05 14:07:39 +00:00
|
|
|
enablePublicAccessSettingsPage: "[data-testid=t--embed-settings-application-public]",
|
2023-05-19 18:37:06 +00:00
|
|
|
switchLabel: ".ads-v2-switch__label",
|
|
|
|
|
closeBtn: ".ads-v2-modal__content-header-close-button",
|
|
|
|
|
editModeInviteModalCloseBtn: ".ads-v2-modal__content-header-close-button",
|
2022-02-25 06:13:16 +00:00
|
|
|
applicationName: ".t--application-name",
|
2023-05-19 18:37:06 +00:00
|
|
|
applicationEditMenu: ".ads-v2-menu__menu-item-children",
|
2022-02-25 06:13:16 +00:00
|
|
|
editingAppName: "bp3-editable-text-editing",
|
2023-05-19 18:37:06 +00:00
|
|
|
portalMenuItem: ".ads-v2-menu__menu-item-children",
|
|
|
|
|
profileMenu: ".t--profile-menu-icon",
|
|
|
|
|
signOutIcon: ".t--sign-out",
|
2022-02-25 06:13:16 +00:00
|
|
|
headerAppSmithLogo: ".t--Appsmith-logo-image",
|
2023-05-19 18:37:06 +00:00
|
|
|
applicationCardName: "[data-testid=t--app-card-name]",
|
2022-02-25 06:13:16 +00:00
|
|
|
applicationIconSelector: ".t--icon-not-selected",
|
|
|
|
|
applicationColorSelector: ".t--color-not-selected",
|
|
|
|
|
applicationBackgroundColor: ".t--application-card-background",
|
2023-05-19 18:37:06 +00:00
|
|
|
workspaceSettingOption: "[data-testid=t--workspace-setting]",
|
|
|
|
|
workspaceImportAppOption: "[data-testid=t--workspace-import-app]",
|
2022-06-15 15:37:41 +00:00
|
|
|
workspaceImportAppModal: ".t--import-application-modal",
|
2023-05-19 18:37:06 +00:00
|
|
|
workspaceImportAppButton: "[data-testid=t--workspace-import-app-button]",
|
2022-06-15 15:37:41 +00:00
|
|
|
leaveWorkspaceConfirmModal: ".t--member-delete-confirmation-modal",
|
2023-05-19 18:37:06 +00:00
|
|
|
leaveWorkspaceConfirmButton: "[data-testid=t--workspace-leave-button]",
|
|
|
|
|
workspaceNameInput: "[data-testid=t--workspace-name-input]",
|
|
|
|
|
renameWorkspaceInput: ".t--workspace-rename-input",
|
|
|
|
|
workspaceEmailInput: "[data-testid=t--workspace-email-input]",
|
|
|
|
|
workspaceWebsiteInput: "[data-testid=t--workspace-website-input]",
|
2022-08-22 17:57:07 +00:00
|
|
|
workspaceHeaderName: "[data-testid='t--page-title']",
|
2023-05-19 18:37:06 +00:00
|
|
|
leftPanelContainer: "[data-testid=t--left-panel]",
|
2022-02-25 06:13:16 +00:00
|
|
|
themeText: "label div",
|
2023-05-19 18:37:06 +00:00
|
|
|
shareUserIcons: ".t--workspace-share-user-icons",
|
|
|
|
|
toastMessage: "div.Toastify__toast",
|
2022-02-25 06:13:16 +00:00
|
|
|
uploadLogo: "//div/form/input",
|
|
|
|
|
removeLogo: ".remove-button a span",
|
|
|
|
|
generalTab: "//li//span[text()='General']",
|
|
|
|
|
membersTab: "//li//span[text()='Members']",
|
|
|
|
|
cancelBtn: "//span[text()='Cancel']",
|
|
|
|
|
submit: "button:contains('Submit')",
|
2023-05-19 18:37:06 +00:00
|
|
|
workspaceNamePopover: ".ads-v2-button__content-icon-start",
|
|
|
|
|
workspaceNamePopoverContent: ".ads-v2-menu",
|
2022-06-15 15:37:41 +00:00
|
|
|
workspaceCompleteSection: ".t--workspace-section",
|
|
|
|
|
workspaceNameText: ".t--workspace-name-text",
|
2023-05-19 18:37:06 +00:00
|
|
|
workspaceHeading: "//span[text()='Workspaces']",
|
2022-02-25 06:13:16 +00:00
|
|
|
optionsIcon: ".t--options-icon",
|
2023-05-19 18:37:06 +00:00
|
|
|
reconnectDatasourceModal: "[data-testid='reconnect-datasource-modal']",
|
2022-05-17 06:56:34 +00:00
|
|
|
importAppProgressWrapper: ".t-import-app-progress-wrapper",
|
2023-05-05 06:49:20 +00:00
|
|
|
backtoHome: ".t--app-viewer-back-to-apps-button",
|
2024-01-25 13:41:48 +00:00
|
|
|
newButtonCreateApplication: "[data-testid=t--workspace-action-create-app]",
|
|
|
|
|
helpButton:".t--help-menu-option",
|
|
|
|
|
noEntityFound:".no-search-results",
|
|
|
|
|
initialWorkspace:"[data-testid^='Untitled workspace']",
|
|
|
|
|
initialApplication:"[data-testid^='Untitled application']",
|
|
|
|
|
_entitySearchBar:"[data-testid='t--application-search-input']";
|
2022-02-25 06:13:16 +00:00
|
|
|
};
|