-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor shared folder creation (#1953)
* see how tests break * lingui extract * fix creation * fix links * remove only * Update createSharedFolderModal.ts * Update sharedPage.ts * Update file-sharing-spec.ts * lingui extract Co-authored-by: GitHub Actions <actions@github.com> Co-authored-by: Andrew Snaith <asnaith@users.noreply.github.com> Co-authored-by: Michael Yankelev <12774278+FSM1@users.noreply.github.com>
- Loading branch information
1 parent
c9ded0e
commit f645120
Showing
16 changed files
with
392 additions
and
438 deletions.
There are no files selected for viewing
20 changes: 3 additions & 17 deletions
20
packages/files-ui/cypress/support/page-objects/modals/createSharedFolderModal.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,6 @@ | ||
export const createEditSharedFolderModal = { | ||
body: () => cy.get("[data-testid=modal-container-create-or-edit-shared-folder]", { timeout: 10000 }), | ||
export const createSharedFolderModal = { | ||
body: () => cy.get("[data-testid=modal-container-create-shared-folder]", { timeout: 10000 }), | ||
cancelButton: () => cy.get("[data-cy=button-cancel-create-shared-folder]"), | ||
createButton: () => cy.get("[data-cy=button-create-shared-folder]", { timeout: 10000 }), | ||
editPermissionInput: () => cy.get("[data-cy=input-edit-permission]"), | ||
folderNameInput: () => cy.get("[data-cy=input-shared-folder-name]"), | ||
updateButton: () => cy.get("[data-cy=button-update-shared-folder]", { timeout: 10000 }), | ||
userLookupResult: () => cy.get("[data-cy=user-lookup-result]", { timeout: 10000 }), | ||
// link sharing related elements | ||
shareLink: () => cy.get("[data-cy=link-share]"), | ||
activeShareLink: () => cy.get("[data-cy=link-active-share]"), | ||
labelPermissionType: () => cy.get("[data-cy=label-permission-type]"), | ||
copyLinkButton: () => cy.get("[data-cy=button-copy-link]"), | ||
linkKebabMenu: () => cy.get("[data-testid=icon-link-kebab]"), | ||
deleteLinkMenuOption: () => cy.get("[data-cy=menu-delete-active-link]"), | ||
linkPermissionDropdown: () => cy.get("[data-testid=dropdown-title-link-permission]"), | ||
viewOnlyDropdownOption: () => cy.get("[data-testid=dropdown-link-permission-read]"), | ||
canEditDropdownOption: () => cy.get("[data-testid=dropdown-link-permission-write]"), | ||
createLinkButton: () => cy.get("[data-cy=button-create-link]") | ||
folderNameInput: () => cy.get("[data-cy=input-shared-folder-name]") | ||
} |
20 changes: 20 additions & 0 deletions
20
packages/files-ui/cypress/support/page-objects/modals/editSharedFolderModal.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export const editSharedFolderModal = { | ||
body: () => cy.get("[data-testid=modal-container-edit-shared-folder]", { timeout: 10000 }), | ||
cancelButton: () => cy.get("[data-cy=button-cancel-create-shared-folder]"), | ||
createButton: () => cy.get("[data-cy=button-create-shared-folder]", { timeout: 10000 }), | ||
editPermissionInput: () => cy.get("[data-cy=input-edit-permission]"), | ||
folderNameInput: () => cy.get("[data-cy=input-shared-folder-name]"), | ||
updateButton: () => cy.get("[data-cy=button-update-shared-folder]", { timeout: 10000 }), | ||
userLookupResult: () => cy.get("[data-cy=user-lookup-result]", { timeout: 10000 }), | ||
// link sharing related elements | ||
shareLink: () => cy.get("[data-cy=link-share]"), | ||
activeShareLink: () => cy.get("[data-cy=link-active-share]"), | ||
labelPermissionType: () => cy.get("[data-cy=label-permission-type]"), | ||
copyLinkButton: () => cy.get("[data-cy=button-copy-link]"), | ||
linkKebabMenu: () => cy.get("[data-testid=icon-link-kebab]"), | ||
deleteLinkMenuOption: () => cy.get("[data-cy=menu-delete-active-link]"), | ||
linkPermissionDropdown: () => cy.get("[data-testid=dropdown-title-link-permission]"), | ||
viewOnlyDropdownOption: () => cy.get("[data-testid=dropdown-link-permission-read]"), | ||
canEditDropdownOption: () => cy.get("[data-testid=dropdown-link-permission-write]"), | ||
createLinkButton: () => cy.get("[data-cy=button-create-link]") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.