-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
115 changed files
with
4,999 additions
and
6,679 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
apps/sensenet/cypress/integration/context-menu/context-menu.spec.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,28 @@ | ||
import { pathWithQueryParams } from '../../../src/services/query-string-builder' | ||
|
||
const contextMenuItems = ['Details', 'Copy to', 'Edit', 'Move to', 'Versions', 'Share', 'Delete', 'Set permissions'] | ||
|
||
describe('Grid context menu', () => { | ||
before(() => { | ||
cy.login() | ||
cy.visit(pathWithQueryParams({ path: '/', newParams: { repoUrl: Cypress.env('repoUrl') } })) | ||
}) | ||
|
||
it('right-click on a content in the grid makes context-menu open', () => { | ||
cy.get('[data-test="drawer-menu-item-content"]').click() | ||
cy.checkContextMenu({ | ||
selector: '[data-test="table-cell-it-workspace"]', | ||
contextMenuItems, | ||
clickAction: 'rightclick', | ||
}) | ||
}) | ||
|
||
it('click on ... (Actions) in the grid makes context-menu open', () => { | ||
cy.get('[data-test="drawer-menu-item-content"]').click() | ||
cy.checkContextMenu({ | ||
selector: '[data-test="actions-button-it"]', | ||
contextMenuItems, | ||
clickAction: 'click', | ||
}) | ||
}) | ||
}) |
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
63 changes: 63 additions & 0 deletions
63
apps/sensenet/cypress/integration/ui/batchOperations.spec.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,63 @@ | ||
import { PATHS, resolvePathParams } from '../../../src/application-paths' | ||
import { pathWithQueryParams } from '../../../src/services/query-string-builder' | ||
|
||
describe('Batch operations: ', () => { | ||
beforeEach(() => { | ||
cy.login() | ||
cy.visit(pathWithQueryParams({ path: '/', newParams: { repoUrl: Cypress.env('repoUrl') } })) | ||
cy.visit( | ||
pathWithQueryParams({ | ||
path: resolvePathParams({ path: PATHS.content.appPath, params: { browseType: 'explorer' } }), | ||
newParams: { repoUrl: Cypress.env('repoUrl'), path: '/Marketing/Document_Library' }, | ||
}), | ||
) | ||
}) | ||
|
||
it('multiple content delete works as it is intended', () => { | ||
cy.get('[data-test="menu-item-chicago"]').click({ force: true }) | ||
cy.get('[data-test="table-row-selection-control-100pages.docx"]').click({ force: true }) | ||
cy.get('[data-test="table-row-selection-control-100pages.pdf"]') | ||
.find('input[type="checkbox"]') | ||
.check({ force: true }) | ||
cy.get('[data-test="batch-delete"]').click() | ||
cy.get('[data-test="delete-permanently"] input[type="checkbox"]').check() | ||
cy.get('[data-test="button-delete-confirm"]').click() | ||
cy.get('[data-test="table-cell-100pages.docx"]').should('not.exist') | ||
cy.get('[data-test="table-cell-100pages.pdf"]').should('not.exist') | ||
}) | ||
|
||
it('multiple content move works as it is intended', () => { | ||
cy.get('[data-test="menu-item-munich"]').click({ force: true }) | ||
cy.get('[data-test="table-row-selection-control-100pages.docx"]').click({ force: true }) | ||
cy.get('[data-test="table-row-selection-control-100pages.pdf"]') | ||
.find('input[type="checkbox"]') | ||
.check({ force: true }) | ||
cy.get('[data-test="batch-move"]').click() | ||
cy.get('[data-test="picker-up"]').dblclick() | ||
cy.get('[data-test="picker-checkbox-item-chicago"]').click() | ||
cy.get('[data-test="picker-submit"]').click() | ||
cy.get('[data-test="snackbar-message"]').should('have.text', '2 items has been moved to Chicago') | ||
cy.get('[data-test="table-cell-100pages.docx"]').should('not.exist') | ||
cy.get('[data-test="table-cell-100pages.pdf"]').should('not.exist') | ||
cy.get('[data-test="menu-item-chicago"]').click({ force: true }) | ||
cy.get('[data-test="table-cell-100pages.docx"]').should('exist') | ||
cy.get('[data-test="table-cell-100pages.pdf"]').should('exist') | ||
}) | ||
it('multiple content copy works as it is intended', () => { | ||
cy.get('[data-test="menu-item-chicago"]').click({ force: true }) | ||
cy.get('[data-test="table-row-selection-control-100pages.docx"]').click({ force: true }) | ||
cy.get('[data-test="table-row-selection-control-100pages.pdf"]') | ||
.find('input[type="checkbox"]') | ||
.check({ force: true }) | ||
cy.get('[data-test="batch-copy"]').click() | ||
cy.get('[data-test="picker-up"]').dblclick() | ||
cy.get('[data-test="picker-checkbox-item-munich"]').click() | ||
cy.get('[data-test="picker-submit"]').click() | ||
cy.get('[data-test="snackbar-message"]').should('have.text', '2 items has been copied to Munich') | ||
cy.get('[data-test="table-cell-100pages.docx"]').should('exist') | ||
cy.get('[data-test="table-cell-100pages.pdf"]').should('exist') | ||
cy.get('[data-test="menu-item-munich"]').click({ force: true }) | ||
cy.get('[data-test="table-cell-100pages.docx"]').should('exist') | ||
cy.get('[data-test="table-cell-100pages.pdf"]').should('exist') | ||
}) | ||
}) |
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
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
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
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.