* Added export option to app menu. TODO: call api to download app file * Added checkbox component and removed unused code * Added import app without filepicker. Opens modal * added ability to fetch the exported app * can download exported application as a json file * Updated the file picker component to accept other file formats * WIP import app * Added functionality to import application json file * minor fixes * Made the file type prop mandatory for file picker * added a test suite for export app * Test added to check if on import application click, it open a modal * added a dummy application file for cypress testing * Added end to end integration test suite to verify import app feature * added test to verify the export api status and download file. * added a linked btn to carry exporting. - according to latest BE changes * Removed old redux and saga mechanism for app export * updated cypress test to validate new flow * fixed minor linting errors * updated test case title * updated the test cases for import/export app feat * review changes * added prop to facilitate delayed upload * added new application file to fixtures. Minor fix to take care of loading state. * Removed export app modal. Added one click action, to download the file. * Updated File picker to work with all other files acc to the design. * Updated the import modal * updated the import application test * Added remove upload tooltip * updated the icons for import/export actions * removed unused logs * added hard coded feature flag to hide/show import export feature Co-authored-by: Pranav Kanade <pranav@appsmith.com>
84 lines
4.0 KiB
JSON
84 lines
4.0 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]",
|
|
"exportAppFromMenu": "[data-cy=t--export-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]",
|
|
"orgImportAppOption": "[data-cy=t--org-import-app]",
|
|
"orgImportAppModal": ".t--import-application-modal",
|
|
"orgImportAppButton": "[data-cy=t--org-import-app-button]",
|
|
"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')",
|
|
"orgNamePopover": ".t--org-name",
|
|
"orgNamePopoverContent": ".bp3-popover-content"
|
|
}
|