PromucFlow_constructor/app/client/cypress/locators/HomePage.js
Ankita Kinger 3933f5f4d1
feat: migrate from org to workspace under phase 3 (#14158)
* migration from organization to workspace on code level

* updated a few more files

* fixed runtime errors

* update org settings URL

* Renamed organizationId in domain objects

* changed field named from organization to workspace

* Reverted AppsmithRole changes

* fixed migrations

* recreating indexes

* migration update

* seed data runs before migration, undo changes

* mock commit

* seedmongo to populate upgraded data, datasource upgrade

* fixed two test cases

* updated migrations

* updated prop name

* Upgraded AclPermission

* comment

* migrated AppsmithRole

* more changes

* final set of changes

* variable name changes

* update cypress variable name

* Update app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/ApplicationControllerCE.java

* Update app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/Datasource.java

Co-authored-by: Trisha Anand <trisha@appsmith.com>

* reverting encryption handler change

* refactor code to migrate from org to workspace

* migrated a few missed out org to workspace

* updated a few more

* migrated a few missed out org to workspace

* migration changes

* Removed Permission import

* reverted code change

* few more changes

* fixed failing cypress test

* fixed failing cypress test

Co-authored-by: Sidhant Goel <sidhant@appsmith.com>
Co-authored-by: Trisha Anand <trisha@appsmith.com>
Co-authored-by: Sidhant Goel <sidhant@hexcod.in>
2022-07-20 17:24:16 +05:30

100 lines
4.6 KiB
JavaScript

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']",
appMoreIcon: ".bp3-popover-wrapper.more .bp3-popover-target",
duplicateApp: "[data-cy=t--duplicate]",
forkAppFromMenu: "[data-cy=t--fork-app]",
exportAppFromMenu: "[data-cy=t--export-app]",
forkAppWorkspaceButton: ".t--fork-app-to-workspace-button",
selectAction: "#Base",
deleteApp: "[data-cy=t--delete]",
createNewAppButton: ".t--new-button",
deleteAppConfirm: "[data-cy=t--delete-confirm]",
homeIcon: ".t--appsmith-logo",
inputAppName: "input[name=applicationName]",
createNew: ".createnew",
createWorkspace: "span:contains('New Workspace')",
inputWorkspaceName: "//input[@name='name']",
submitBtn: "//span[text()='Submit']",
workspaceMenu: "//span[text()='TestShareWorkspace']",
members: "//span[contains(text(),'Members')]",
share: "//span[contains(text(),'Share')]",
WorkspaceSettings: "//span[contains(text(),'Workspace Settings')]",
MemberSettings: "//span[contains(text(),'Members')]",
inviteUser: "//span[text()='Invite Users']",
inviteUserMembersPage: "[data-cy=t--invite-users]",
email: "//input[@type='email']",
selectRole: "//span[text()='Select a role']",
adminRole:
"//div[contains(@class, 'label-container')]//span[1][text()='Administrator']",
viewerRole:
"//div[contains(@class, 'label-container')]//span[1][text()='App Viewer']",
developerRole:
"//div[contains(@class, 'label-container')]//span[1][text()='Developer']",
inviteBtn: "//button//span[text()='Invite']",
manageUsers: ".manageUsers",
DeleteBtn: "[data-cy=t--deleteUser]",
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']",
workspaceList: ".t--workspace-section:contains(",
workspaceSectionBtn: ".t--workspace-section .bp3-button",
shareWorkspace: ") button:contains('Share')",
workspaceSection: "a:contains(",
createAppFrWorkspace: ") .t--new-button",
shareApp: ".t--application-share-btn",
enablePublicAccess: ".t--share-public-toggle .slider",
closeBtn: ".bp3-dialog-close-button",
applicationName: ".t--application-name",
applicationEditMenu: ".t--application-edit-menu",
editingAppName: "bp3-editable-text-editing",
portalMenuItem: ".bp3-portal .bp3-menu-item",
profileMenu: ".bp3-popover-wrapper.profile-menu",
signOutIcon: ".t--logout-icon",
headerAppSmithLogo: ".t--Appsmith-logo-image",
applicationCardName: "[data-cy=t--app-card-name]",
applicationIconSelector: ".t--icon-not-selected",
applicationColorSelector: ".t--color-not-selected",
applicationBackgroundColor: ".t--application-card-background",
workspaceSettingOption: "[data-cy=t--workspace-setting]",
workspaceImportAppOption: "[data-cy=t--workspace-import-app]",
workspaceImportAppModal: ".t--import-application-modal",
workspaceImportAppButton: "[data-cy=t--workspace-import-app-button]",
leaveWorkspaceConfirmModal: ".t--member-delete-confirmation-modal",
leaveWorkspaceConfirmButton: "[data-cy=t--workspace-leave-button]",
workspaceNameInput: "[data-cy=t--workspace-name-input]",
renameWorkspaceInput: "[data-cy=t--workspace-rename-input]",
workspaceEmailInput: "[data-cy=t--workspace-email-input]",
workspaceWebsiteInput: "[data-cy=t--workspace-website-input]",
workspaceHeaderName: ".t--workspace-header",
leftPanelContainer: "[data-cy=t--left-panel]",
themeText: "label div",
shareUserIcons: ".workspace-share-user-icons",
toastMessage: ".t--toast-action",
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')",
workspaceNamePopover: ".t--workspace-name",
workspaceNamePopoverContent: ".bp3-popover-content",
workspaceCompleteSection: ".t--workspace-section",
workspaceNameText: ".t--workspace-name-text",
optionsIcon: ".t--options-icon",
reconnectDatasourceModal: ".reconnect-datasource-modal",
importAppProgressWrapper: ".t-import-app-progress-wrapper",
};