-
-
Notifications
You must be signed in to change notification settings - Fork 694
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into typescript-support-in-core
* master: (59 commits) (feat):Update toc block entries (#5146) view cypress test (#5149) fix search block search results number (#5171) fix : RecursiveWidget is incorrectly translated (#4513) Bugfix : Responsive Error in login page (#4309) Fix default template for content type which contains block with schem… (#5159) Updated Spanish translation (#5120) ContentRules add and edit forms for languages other than English (#5162) Fix SelectWidget throwing error when editing a recently created conte… (#5155) Don't show ``No value`` option in SelectWidget and ArrayWidget if default value is 0 (#5152) Fix storybook config for project generator. Add support for SCSS, upgrade to webpack 5 in there as well. (#5132) Fix linkcheckbroken 301 redirect to https://www.dlr.de/de (#5131) Release 17.0.0-alpha.25 fix: Fix querystringResults subrequests id, to work properly in dupli… (#5071) Fix accessibility of the content folder buttons (#5101) Refactor Comment (#4874) Refactor Search Tags (#4873) Logout Refactor (#4860) Add www.dlr.de to README (#5112) Fix default toc renderer for nested entries (#5116) ...
- Loading branch information
Showing
158 changed files
with
11,535 additions
and
5,927 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# Contributing to Volto | ||
|
||
See [Contributing to Volto](https://6.docs.plone.org/volto/developer-guidelines/contributing.html). | ||
See the following documents. | ||
|
||
- [Contributing to Plone](https://6.docs.plone.org/contributing/index.html) | ||
- [Contributing to Volto](https://6.docs.plone.org/volto/contributing/index.html) | ||
- [First-time contributors](https://6.docs.plone.org/contributing/first-time.html) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
describe('actions Tests', () => { | ||
beforeEach(() => { | ||
cy.autologin(); | ||
cy.createContent({ | ||
contentType: 'Document', | ||
contentId: 'my-page-1', | ||
contentTitle: 'My Page-1', | ||
allow_discussion: true, | ||
} | ||
); | ||
cy.visit('/contents'); | ||
}); | ||
it('copy', function () { | ||
cy.get('tr[aria-label="/my-page-1"]').within(() => { | ||
cy.get('svg[class="icon dropdown-popup-trigger"]').click(); | ||
}); | ||
cy.get('a[class="item right-dropdown icon-align"]').eq(2).click(); | ||
cy.get('button[class="ui button icon item"]').click(); | ||
cy.visit('/contents'); | ||
cy.get('tr[aria-label="/copy_of_my-page-1"]').within(()=>{ | ||
cy.get('a[class="icon-align-name"]').should('have.attr', 'href', '/copy_of_my-page-1/contents'); | ||
}) | ||
}); | ||
it('delete', function () { | ||
cy.get('tr[aria-label="/my-page-1"]').within(() => { | ||
cy.get('button[class="ui basic icon button"]').click({ multiple: true }); | ||
}); | ||
cy.get('button[class="ui button icon item"]').eq(6).click(); | ||
cy.get('button[class="ui primary button"]').findByText('Delete').click(); | ||
cy.visit('/contents'); | ||
cy.get('tr').should('not.contain','/my-page-1'); | ||
|
||
}); | ||
it('cut', function () { | ||
cy.get('tr[aria-label="/my-page-1"]').within(() => { | ||
cy.get('svg[class="icon dropdown-popup-trigger"]').click(); | ||
}); | ||
cy.get('a[class="item right-dropdown icon-align"]').eq(1).click(); | ||
cy.get('button[class="ui button icon item"]').click(); | ||
cy.visit('/contents'); | ||
cy.get('tr[aria-label="/my-page-1"]').within(()=>{ | ||
cy.get('a[class="icon-align-name"]').should('have.attr', 'href', '/my-page-1/contents'); | ||
}) | ||
}); | ||
it('rename', function () { | ||
cy.get('tr[aria-label="/my-page-1"]').within(() => { | ||
cy.get('button[class="ui basic icon button"]').click({ multiple: true }); | ||
}); | ||
cy.get('button[class="ui button icon item"]').eq(0).click(); | ||
cy.get('#field-0_title').clear().type('my-page-rename'); | ||
cy.get('#field-0_id').clear().type('my-page-rename'); | ||
cy.get('button[class="ui basic circular primary right floated button"]').click(); | ||
cy.get('tr[aria-label="/my-page-rename"]').within(()=>{ | ||
cy.get('a[class="icon-align-name"]').should('have.attr', 'href', '/my-page-rename/contents'); | ||
}) | ||
}) | ||
}); |
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,21 @@ | ||
describe('delete Tests', () => { | ||
beforeEach(() => { | ||
cy.autologin(); | ||
cy.createContent({ | ||
contentType: 'Document', | ||
contentId: 'my-page', | ||
contentTitle: 'My Page', | ||
allow_discussion: true, | ||
} | ||
); | ||
cy.visit('/contents'); | ||
}); | ||
it('delete', function () { | ||
cy.get('tr[aria-label="/my-page"]').within(() => { | ||
cy.get('button[class="ui basic icon button"]').click({ multiple: true }); | ||
}); | ||
cy.get('button[class="ui button icon item"]').eq(6).click(); | ||
cy.get('button[class="ui primary button"]').findByText('Delete').click(); | ||
cy.get('tr').should('not.contain','/my-page'); | ||
}); | ||
}); |
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 @@ | ||
import { ploneAuth } from '../../../support/constants'; | ||
|
||
describe('Logout Tests', () => { | ||
beforeEach(() => { | ||
cy.visit('/'); | ||
cy.contains('Log in').click(); | ||
const user = ploneAuth[0]; | ||
const password = ploneAuth[1]; | ||
|
||
cy.get('#login').type(user).should('have.value', user); | ||
cy.get('#password').type(password).should('have.value', password); | ||
cy.get('#login-form-submit').click(); | ||
cy.get('body').should('have.class', 'has-toolbar'); | ||
}); | ||
it('As registered user I can logout', function () { | ||
cy.get('#toolbar-personal').click(); | ||
cy.get('#toolbar-logout').click(); | ||
cy.getCookie('auth_key').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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
describe('Add Content Tests', () => { | ||
beforeEach(() => { | ||
cy.intercept('GET', `/**/*?expand*`).as('content'); | ||
// give a logged in editor and the site root | ||
cy.autologin(); | ||
cy.visit('/'); | ||
cy.wait('@content'); | ||
}); | ||
|
||
it('As editor I can change the view to Listing View', function () { | ||
|
||
cy.visit('/events'); | ||
cy.get('#toolbar-more').click(); | ||
cy.findByText('Listing view').click(); | ||
cy.findByText('Album view').click(); | ||
cy.visit('/events'); | ||
cy.wait('@content'); | ||
cy.wait(2000); | ||
cy.get('main').contains('Event').should('be.visible'); | ||
}); | ||
|
||
it('As editor I can change the view to Summary View', function () { | ||
|
||
cy.visit('/events'); | ||
cy.get('#toolbar-more').click(); | ||
cy.findByText('Listing view').click(); | ||
cy.findByText('Summary view').click(); | ||
cy.visit('/events'); | ||
cy.wait('@content'); | ||
cy.wait(2000); | ||
cy.get('main').contains('Event').should('be.visible'); | ||
}); | ||
it('As editor I can change the view to Tabular View', function () { | ||
|
||
cy.visit('/events'); | ||
cy.get('#toolbar-more').click(); | ||
cy.findByText('Listing view').click(); | ||
cy.findByText('Tabular view').click(); | ||
cy.visit('/events'); | ||
cy.wait('@content'); | ||
cy.wait(2000); | ||
cy.get('main').contains('Event').should('be.visible'); | ||
}); | ||
it('As editor I can change the view to Album View', function () { | ||
|
||
cy.visit('/events'); | ||
cy.get('#toolbar-more').click(); | ||
cy.findByText('Listing view').click(); | ||
cy.visit('/events'); | ||
cy.wait('@content'); | ||
cy.wait(2000); | ||
cy.get('main').contains('Event').should('be.visible'); | ||
}); | ||
}); | ||
|
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,25 @@ | ||
describe('workflow Tests', () => { | ||
beforeEach(() => { | ||
cy.autologin(); | ||
cy.createContent({ | ||
contentType: 'Document', | ||
contentId: 'my-page', | ||
contentTitle: 'My Page', | ||
allow_discussion: true, | ||
} | ||
); | ||
cy.visit('/contents'); | ||
}); | ||
it('change workflow state recursively', function () { | ||
cy.get('tr[aria-label="/my-page"]').within(() => { | ||
cy.get('button[class="ui basic icon button"]').click({ multiple: true }); | ||
}) | ||
cy.get('button[class="ui button icon item"]').eq(1).click(); | ||
cy.findByText('Select…').click(); | ||
cy.findByText('Publish').click(); | ||
cy.findByTitle('Save').click(); | ||
cy.get('tr[aria-label="/my-page"]').within(() => { | ||
cy.get('td > div').should('contain','Published'); | ||
}) | ||
}); | ||
}); |
Oops, something went wrong.