-
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.
Merge branch '1513/release-2023-06RELEASE'
- Loading branch information
Showing
153 changed files
with
3,176 additions
and
1,131 deletions.
There are no files selected for viewing
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,4 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
exec >/dev/tty 2>&1 | ||
yarn lint-staged |
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
43 changes: 43 additions & 0 deletions
43
apps/sensenet/cypress/e2e/content-templates/create_delete_content_templates.cy.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,43 @@ | ||
import { pathWithQueryParams } from '../../../src/services/query-string-builder' | ||
|
||
const templeteName = 'Test template' | ||
|
||
describe('Create/Delete content', () => { | ||
before(() => { | ||
cy.login() | ||
cy.visit(pathWithQueryParams({ path: '/', newParams: { repoUrl: Cypress.env('repoUrl') } })) | ||
}) | ||
it('Creating a new folder should work properly', () => { | ||
cy.get('[data-test="drawer-menu-item-content-templates"]').click() | ||
|
||
cy.intercept(/ContentTemplates\?/).as('ContentTemplates') | ||
|
||
cy.wait('@ContentTemplates').then(({ response }) => { | ||
cy.get('[data-test="add-button"]').click() | ||
cy.get('[data-test="listitem-email-template"]') | ||
.click() | ||
.then(() => { | ||
cy.get('#Name').type(templeteName) | ||
cy.contains('Submit').click() | ||
cy.get('[data-test="snackbar-close"]').click() | ||
cy.get(`[data-test="table-cell-${templeteName.replace(/\s+/g, '-').toLowerCase()}"]`).should( | ||
'have.text', | ||
templeteName, | ||
) | ||
}) | ||
}) | ||
}) | ||
|
||
it('Folder delete should work properly', () => { | ||
cy.get('[data-test="drawer-menu-item-content-templates"]').click() | ||
cy.get(`[data-test="table-cell-${templeteName.replace(/\s+/g, '-').toLowerCase()}"]`).rightclick() | ||
cy.get('[data-test="content-context-menu-delete"]') | ||
.click() | ||
.then(() => { | ||
cy.get('[data-test="delete-permanently"]').click() | ||
cy.get('button[aria-label="Delete"]').click() | ||
cy.get('[data-test="snackbar-close"]').click() | ||
cy.get(`[data-test="table-cell-${templeteName.replace(/\s+/g, '-').toLowerCase()}"]`).should('not.exist') | ||
}) | ||
}) | ||
}) |
59 changes: 59 additions & 0 deletions
59
apps/sensenet/cypress/e2e/content-templates/create_delete_file.cy.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,59 @@ | ||
import { pathWithQueryParams } from '../../../src/services/query-string-builder' | ||
|
||
const fileName = `TestFile` | ||
const newFileName = `Changed${fileName}` | ||
|
||
describe('Create/Delete content', () => { | ||
before(() => { | ||
cy.login() | ||
cy.visit(pathWithQueryParams({ path: '/', newParams: { repoUrl: Cypress.env('repoUrl') } })) | ||
}) | ||
it('Creating a new file should work properly', () => { | ||
cy.get('[data-test="drawer-menu-item-content"]').click() | ||
cy.get('[data-test="menu-item-sample-workspace"]').click() | ||
cy.get('[data-test="menu-item-document-library"]').click({ force: true }) | ||
cy.get('[data-test="add-button"]').click() | ||
cy.get('[data-test="listitem-file"]') | ||
.click() | ||
.then(() => { | ||
cy.get('#Name').type(fileName) | ||
cy.contains('Submit').click() | ||
cy.get('[data-test="snackbar-close"]').click() | ||
cy.get(`[data-test="table-cell-${fileName.replace(/\s+/g, '-').toLowerCase()}"]`).should('have.text', fileName) | ||
}) | ||
}) | ||
|
||
it('File should be edited', () => { | ||
cy.get('[data-test="drawer-menu-item-content"]').click() | ||
cy.get('[data-test="menu-item-sample-workspace"]').click() | ||
cy.get('[data-test="menu-item-document-library"]').click({ force: true }) | ||
cy.get(`[data-test="table-cell-${fileName.replace(/\s+/g, '-').toLowerCase()}"]`).rightclick({ force: true }) | ||
cy.get('[data-test="content-context-menu-edit"]') | ||
.click() | ||
.then(() => { | ||
cy.get('#Name').clear().type(newFileName) | ||
cy.contains('Submit').click() | ||
cy.get('[data-test="snackbar-close"]').click() | ||
cy.get(`[data-test="table-cell-${newFileName.replace(/\s+/g, '-').toLowerCase()}"]`).should( | ||
'have.text', | ||
newFileName, | ||
) | ||
cy.get(`[data-test="table-cell-${fileName.replace(/\s+/g, '-').toLowerCase()}"]`).should('not.exist') | ||
}) | ||
}) | ||
|
||
it('File delete should work properly', () => { | ||
cy.get('[data-test="drawer-menu-item-content"]').click() | ||
cy.get('[data-test="menu-item-sample-workspace"]').click({ force: true }) | ||
cy.get('[data-test="menu-item-document-library"]').click({ force: true }) | ||
cy.get(`[data-test="table-cell-${newFileName.replace(/\s+/g, '-').toLowerCase()}"]`).rightclick({ force: true }) | ||
cy.get('[data-test="content-context-menu-delete"]') | ||
.click() | ||
.then(() => { | ||
cy.get('[data-test="delete-permanently"]').click() | ||
cy.get('button[aria-label="Delete"]').click() | ||
cy.get('[data-test="snackbar-close"]').click() | ||
cy.get(`[data-test="table-cell-${fileName.replace(/\s+/g, '-').toLowerCase()}"]`).should('not.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
Oops, something went wrong.