PromucFlow_constructor/app/client/cypress/locators/HomePage.json
Kaushik Varanasi 984119e9cb
Feature: auto create organisation Fixes #2720 (#3922)
* added basic function structure for creating organization

* added functionality for automatically creating an organization with 'Untitled organization 1' like applications. Need to add tests.

* added test for creating organizations with default names

* added tests for creating org with default name

* updated jest tests to not fill in the organization form

* remove unused imports

* deleted unnused files

* added more test to check invite users to application and check that the create application is visible

* updated share application tests according to the new workflow

* fix failing tests. TODO: fix tests with renameRandomOrg to rename specific org

* remove rename random org and rename specific orgs

* remove blocking code so the element can be scrolled into view

* fix tests

* try to fix flaky tests

* remove unused

* remove create organization tests as we are testing these components elsewhere

* fix failing tests by stubbing create org response

* update tests according to new workflow
2021-05-05 12:40:35 +05:30

78 lines
3.7 KiB
JSON

{
"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",
"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]",
"forkAppOrgList": ".radio-group",
"forkAppOrgButton": "[data-cy=t--fork-app-to-org-button]",
"selectAction": "#Base",
"deleteApp": "[data-cy=t--delete]",
"deleteAppConfirm": "[data-cy=t--delete-confirm]",
"homeIcon": ".t--appsmith-logo",
"inputAppName": "input[name=applicationName]",
"createNew": ".createnew",
"createOrg": "span:contains('Create Organization')",
"inputOrgName": "//input[@name='name']",
"submitBtn": "//span[text()='Submit']",
"orgMenu": "//span[text()='TestShareOrg']",
"members": "//span[contains(text(),'Members')]",
"share": "//span[contains(text(),'Share')]",
"OrgSettings": "//span[contains(text(),'Organization 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": "//a//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']",
"orgList": ".t--org-section:contains(",
"orgSectionBtn": ".t--org-section .bp3-button",
"shareOrg": ") a:contains('Share')",
"orgSection": "a:contains(",
"createAppFrOrg": ") .t--create-app-popup",
"shareApp": ".t--application-share-btn",
"enablePublicAccess": ".slider",
"closeBtn": ".bp3-dialog-close-button",
"applicationName": ".t--application-name",
"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",
"orgSettingOption": "[data-cy=t--org-setting]",
"orgNameInput": "[data-cy=t--org-name-input]",
"renameOrgInput": "[data-cy=t--org-rename-input]",
"orgEmailInput": "[data-cy=t--org-email-input]",
"orgWebsiteInput": "[data-cy=t--org-website-input]",
"orgHeaderName": ".t--organization-header",
"leftPanelContainer": "[data-cy=t--left-panel]",
"themeText": "label div",
"shareUserIcons": ".org-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')"
}