-
-
Notifications
You must be signed in to change notification settings - Fork 688
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into order-blocks-sidebar-fixs
- 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