-
-
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.
* main: Release 18.1.2 Remove devserver settings for HMR of volto (#6511) Release @plone/components 2.2.1 [components] Fix color picker usability (#6512) Fix README in npm by copying it from the root of the monorepo. (#6510) Add Accessibility acceptance tests for content-types (#6339) Fix linkcheck (#6502) Update browserslist (#6501) Add new Volto trainings to tutorials (#6499)
- Loading branch information
Showing
16 changed files
with
172 additions
and
22 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
`html_use_opensearch` value must not have a trailing slash. Clean up comments. @stevepiercy |
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 |
---|---|---|
@@ -0,0 +1,100 @@ | ||
describe('Accessibility Tests Content Types', () => { | ||
beforeEach(() => { | ||
cy.autologin(); | ||
cy.visit('/'); | ||
cy.injectAxe(); // make sure axe is available on the page | ||
}); | ||
|
||
it('Event tested for a11y axe violations', () => { | ||
cy.get('#toolbar-add').click(); | ||
cy.get('#toolbar-add-event').click(); | ||
cy.get('.documentFirstHeading').type('Test Event Content Type'); | ||
|
||
cy.get('#toolbar-save').click(); | ||
|
||
cy.wait(1000); | ||
cy.get('.ics-download').contains('Download Event').focus(); | ||
cy.checkA11y(); | ||
}); | ||
|
||
it('File tested for a11y axe violations', () => { | ||
cy.get('#toolbar-add').click(); | ||
cy.get('#toolbar-add-file').click(); | ||
cy.get('#field-title').type('Test File Content Type'); | ||
cy.get('#field-description').type( | ||
'A11y cypress test for File content type', | ||
); | ||
|
||
cy.get('input[id="field-file"]').attachFile('file.pdf', { | ||
subjectType: 'input', | ||
}); | ||
|
||
cy.get('#toolbar-save').focus().click(); | ||
|
||
cy.wait(1000); | ||
cy.contains('file.pdf').focus(); | ||
cy.checkA11y(); | ||
}); | ||
|
||
it('Image tested for a11y axe violations', () => { | ||
cy.get('#toolbar-add').click(); | ||
cy.get('#toolbar-add-image').click(); | ||
cy.get('#field-title').type('Test Image Content Type'); | ||
cy.get('#field-description').type('Image description'); | ||
cy.fixture('image.png', 'base64') | ||
.then((fc) => { | ||
return Cypress.Blob.base64StringToBlob(fc); | ||
}) | ||
.then((fileContent) => { | ||
cy.get('input#field-image').attachFile( | ||
{ fileContent, fileName: 'image.png', mimeType: 'image/png' }, | ||
{ subjectType: 'input' }, | ||
); | ||
cy.get('#field-image-image').parent().parent().contains('image.png'); | ||
}); | ||
cy.get('#toolbar-save').click(); | ||
|
||
cy.wait(1000); | ||
cy.get('#view img').should('have.attr', 'alt', 'Test Image Content Type'); | ||
cy.checkA11y(); | ||
}); | ||
|
||
it('Link tested for a11y axe violations', () => { | ||
cy.get('#toolbar-add').click(); | ||
cy.get('#toolbar-add-link').click(); | ||
cy.get('#field-title').type('Test Link Content Type'); | ||
cy.get('#field-description').type( | ||
'A11y cypress test for Link content type', | ||
); | ||
cy.get('#field-remoteUrl').type('https://google.com'); | ||
cy.get('#toolbar-save').click(); | ||
|
||
cy.wait(1000); | ||
cy.get('a.external') | ||
.should('have.attr', 'href', 'https://google.com') | ||
.focus(); | ||
cy.checkA11y(); | ||
}); | ||
|
||
it('News Item tested for a11y axe violations', () => { | ||
cy.get('#toolbar-add').click(); | ||
cy.get('#toolbar-add-news-item').click(); | ||
cy.get('.documentFirstHeading').type('Test News Content Type'); | ||
cy.get('#field-description').type('test summary'); | ||
cy.get('#field-subjects').type('test'); | ||
cy.get('#toolbar-save').click(); | ||
|
||
cy.wait(1000); | ||
cy.checkA11y(); | ||
}); | ||
|
||
it('Page tested for a11y axe violations', () => { | ||
cy.get('#toolbar-add').click(); | ||
cy.get('#toolbar-add-document').click(); | ||
cy.get('.documentFirstHeading').type('My Page'); | ||
cy.get('#toolbar-save').click(); | ||
|
||
cy.wait(1000); | ||
cy.checkA11y(); | ||
}); | ||
}); |
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
} | ||
], | ||
"license": "MIT", | ||
"version": "18.1.1", | ||
"version": "18.1.2", | ||
"repository": { | ||
"type": "git", | ||
"url": "[email protected]:plone/volto.git" | ||
|
@@ -171,7 +171,6 @@ | |
">1%", | ||
"last 4 versions", | ||
"Firefox ESR", | ||
"not ie 11", | ||
"not dead" | ||
], | ||
"engines": { | ||
|
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