@kitconcept/volto-light-theme 3.1.2 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/.changelog.draft +11 -0
  2. package/CHANGELOG.md +3 -567
  3. package/build/messages/src/components/Anontools/Anontools.json +10 -0
  4. package/build/messages/src/components/Blocks/Button/schema.json +6 -0
  5. package/build/messages/src/components/Blocks/EventMetadata/View.json +30 -0
  6. package/build/messages/src/components/Blocks/Image/Edit.json +10 -0
  7. package/build/messages/src/components/Blocks/Image/ImageSidebar.json +18 -0
  8. package/build/messages/src/components/Blocks/Image/schema.json +10 -0
  9. package/build/messages/src/components/Blocks/Listing/ListingBody.json +26 -0
  10. package/build/messages/src/components/Blocks/Search/TopSideFacets.json +10 -0
  11. package/build/messages/src/components/Blocks/Search/components/SearchDetails.json +10 -0
  12. package/build/messages/src/components/Blocks/Search/components/SearchInput.json +6 -0
  13. package/build/messages/src/components/Blocks/Slider/DefaultBody.json +18 -0
  14. package/build/messages/src/components/Blocks/Slider/schema.json +14 -0
  15. package/build/messages/src/components/Blocks/schema.json +6 -0
  16. package/build/messages/src/components/Breadcrumbs/Breadcrumbs.json +10 -0
  17. package/build/messages/src/components/Footer/Footer.json +30 -0
  18. package/build/messages/src/components/Header/Header.json +6 -0
  19. package/build/messages/src/components/LanguageSelector/LanguageSelector.json +6 -0
  20. package/build/messages/src/components/Logo/Logo.json +10 -0
  21. package/build/messages/src/components/MobileNavigation/MobileNavigation.json +26 -0
  22. package/build/messages/src/components/Navigation/Navigation.json +10 -0
  23. package/build/messages/src/components/SearchWidget/IntranetSearchWidget.json +14 -0
  24. package/build/messages/src/components/SearchWidget/SearchWidget.json +10 -0
  25. package/build/messages/src/components/Theme/EventView.json +6 -0
  26. package/build/messages/src/components/Widgets/AlignWidget.json +22 -0
  27. package/build/messages/src/index.json +10 -0
  28. package/locales/de/LC_MESSAGES/volto.po +7 -7
  29. package/locales/en/LC_MESSAGES/volto.po +7 -7
  30. package/locales/es/LC_MESSAGES/volto.po +10 -9
  31. package/locales/eu/LC_MESSAGES/volto.po +10 -9
  32. package/locales/pt_BR/volto.po +7 -7
  33. package/locales/volto.pot +8 -8
  34. package/package.json +8 -26
  35. package/src/components/Blocks/Image/Edit.jsx +14 -14
  36. package/src/components/Blocks/Image/ImageSidebar.jsx +3 -3
  37. package/src/components/Blocks/Image/View.jsx +17 -17
  38. package/src/components/Footer/Footer.jsx +2 -2
  39. package/src/components/Header/Header.jsx +12 -12
  40. package/src/theme/_header.scss +1 -1
  41. package/.dockerignore +0 -1
  42. package/.editorconfig +0 -34
  43. package/.eslintignore +0 -6
  44. package/.eslintrc +0 -53
  45. package/.github/workflows/acceptance.yml +0 -98
  46. package/.github/workflows/changelog.yml +0 -43
  47. package/.github/workflows/code.yml +0 -16
  48. package/.github/workflows/deploy.yml +0 -105
  49. package/.github/workflows/unit.yml +0 -16
  50. package/.prettierignore +0 -3
  51. package/.prettierrc +0 -12
  52. package/.stylelintrc +0 -32
  53. package/.yarn/releases/yarn-3.2.3.cjs +0 -783
  54. package/.yarnrc.yml +0 -3
  55. package/Makefile +0 -174
  56. package/README.md +0 -453
  57. package/UPGRADE-GUIDE.md +0 -38
  58. package/acceptance/.gitkeep +0 -0
  59. package/acceptance/ci-a11y.yml +0 -31
  60. package/acceptance/ci.yml +0 -29
  61. package/acceptance/cypress/.gitkeep +0 -0
  62. package/acceptance/cypress/fixtures/broccoli.jpg +0 -0
  63. package/acceptance/cypress/fixtures/example.json +0 -5
  64. package/acceptance/cypress/fixtures/file.pdf +0 -0
  65. package/acceptance/cypress/fixtures/halfdome2022.jpg +0 -0
  66. package/acceptance/cypress/fixtures/image.png +0 -0
  67. package/acceptance/cypress/plugins/index.js +0 -17
  68. package/acceptance/cypress/support/commands.js +0 -23
  69. package/acceptance/cypress/support/e2e.js +0 -23
  70. package/acceptance/cypress/support/reset-fixture.js +0 -45
  71. package/acceptance/cypress/support/slate.js +0 -14
  72. package/acceptance/cypress/tests/.gitkeep +0 -0
  73. package/acceptance/cypress/tests/a11y/accordionBlock.cy.js +0 -30
  74. package/acceptance/cypress/tests/a11y/basic.cy.js +0 -26
  75. package/acceptance/cypress/tests/a11y/buttonBlock.cy.js +0 -18
  76. package/acceptance/cypress/tests/a11y/eventContenttype.cy.js +0 -18
  77. package/acceptance/cypress/tests/a11y/fileContenttype.cy.js +0 -18
  78. package/acceptance/cypress/tests/a11y/gridBlock.cy.js +0 -18
  79. package/acceptance/cypress/tests/a11y/gridImageBlock.cy.js +0 -18
  80. package/acceptance/cypress/tests/a11y/gridListingBlock.cy.js +0 -18
  81. package/acceptance/cypress/tests/a11y/gridTeaserBlock.cy.js +0 -18
  82. package/acceptance/cypress/tests/a11y/gridTextBlock.cy.js +0 -33
  83. package/acceptance/cypress/tests/a11y/headingBlock.cy.js +0 -18
  84. package/acceptance/cypress/tests/a11y/highlightBlock.cy.js +0 -18
  85. package/acceptance/cypress/tests/a11y/imageBlock.cy.js +0 -18
  86. package/acceptance/cypress/tests/a11y/imageContenttype.cy.js +0 -18
  87. package/acceptance/cypress/tests/a11y/introductionBlock.cy.js +0 -18
  88. package/acceptance/cypress/tests/a11y/linkContenttype.cy.js +0 -18
  89. package/acceptance/cypress/tests/a11y/listingBlock.cy.js +0 -31
  90. package/acceptance/cypress/tests/a11y/mapsBlock.cy.js +0 -27
  91. package/acceptance/cypress/tests/a11y/newsItemContenttype.cy.js +0 -27
  92. package/acceptance/cypress/tests/a11y/pageContent.cy.js +0 -27
  93. package/acceptance/cypress/tests/a11y/searchBlock.cy.js +0 -18
  94. package/acceptance/cypress/tests/a11y/separatorBlock.cy.js +0 -28
  95. package/acceptance/cypress/tests/a11y/tableBlock.cy.js +0 -26
  96. package/acceptance/cypress/tests/a11y/teaserBlock.cy.js +0 -18
  97. package/acceptance/cypress/tests/a11y/textBlock.cy.js +0 -18
  98. package/acceptance/cypress/tests/a11y/tocBlock.cy.js +0 -18
  99. package/acceptance/cypress/tests/a11y/videoBlock.cy.js +0 -27
  100. package/acceptance/cypress/tests/main/basic.cy.js +0 -71
  101. package/acceptance/cypress/tests/main/blocks-map.cy.js +0 -56
  102. package/acceptance/cypress/tests/main/blocks-table.cy.js +0 -127
  103. package/acceptance/cypress/tests/main/listing-grid.cy.js +0 -77
  104. package/acceptance/cypress/tests/main/nav.cy.js +0 -54
  105. package/acceptance/cypress/tests/main/site-action.cy.js +0 -16
  106. package/acceptance/cypress.config.js +0 -17
  107. package/acceptance/docker-compose-a11y.yml +0 -55
  108. package/acceptance/docker-compose.yml +0 -53
  109. package/acceptance/package.json +0 -5
  110. package/acceptance/yarn.lock +0 -2638
  111. package/devops/stacks/light-theme.kitconcept.io.yml +0 -66
  112. package/dockerfiles/Dockerfile +0 -32
  113. package/dockerfiles/Dockerfile.acceptance +0 -19
  114. package/dockerfiles/Dockerfile.dev +0 -24
  115. package/dockerfiles/docker-compose.yml +0 -56
  116. package/dockerfiles/helper.py +0 -132
  117. package/volto-light-theme.png +0 -0
  118. package/volto.config.js +0 -7
@@ -1,31 +0,0 @@
1
- version: "3"
2
-
3
- services:
4
-
5
- addon-acceptance:
6
- build:
7
- context: ../
8
- dockerfile: ./dockerfiles/Dockerfile
9
- args:
10
- ADDON_NAME: "${ADDON_NAME}"
11
- ADDON_PATH: "${ADDON_PATH}"
12
- VOLTO_VERSION: ${VOLTO_VERSION:-17}
13
- environment:
14
- RAZZLE_INTERNAL_API_PATH: http://backend-acceptance-a11y:8080/Plone
15
- RAZZLE_API_PATH: http://localhost:8080/Plone
16
- ports:
17
- - 3000:3000
18
- depends_on:
19
- - backend-acceptance-a11y
20
- profiles:
21
- - prod
22
-
23
- backend-acceptance-a11y:
24
- image: ghcr.io/kitconcept/voltolighttheme:latest
25
- environment:
26
- CORS_: true
27
- ports:
28
- - 8080:8080
29
- profiles:
30
- - dev
31
- - prod
package/acceptance/ci.yml DELETED
@@ -1,29 +0,0 @@
1
- version: "3"
2
-
3
- services:
4
-
5
- addon-acceptance:
6
- build:
7
- context: ../
8
- dockerfile: ./dockerfiles/Dockerfile
9
- args:
10
- ADDON_NAME: "${ADDON_NAME}"
11
- ADDON_PATH: "${ADDON_PATH}"
12
- VOLTO_VERSION: ${VOLTO_VERSION:-17}
13
- environment:
14
- RAZZLE_INTERNAL_API_PATH: http://backend-acceptance:55001/plone
15
- RAZZLE_API_PATH: http://localhost:55001/plone
16
- ports:
17
- - 3000:3000
18
- depends_on:
19
- - backend-acceptance
20
- profiles:
21
- - prod
22
-
23
- backend-acceptance:
24
- image: plone/server-acceptance:${PLONE_VERSION:-6}
25
- ports:
26
- - 55001:55001
27
- profiles:
28
- - dev
29
- - prod
File without changes
@@ -1,5 +0,0 @@
1
- {
2
- "name": "Using fixtures to represent data",
3
- "email": "hello@cypress.io",
4
- "body": "Fixtures are a great way to mock data for responses to routes"
5
- }
@@ -1,17 +0,0 @@
1
- // ***********************************************************
2
- // This example plugins/index.js can be used to load plugins
3
- //
4
- // You can change the location of this file or turn off loading
5
- // the plugins file with the 'pluginsFile' configuration option.
6
- //
7
- // You can read more here:
8
- // https://on.cypress.io/plugins-guide
9
- // ***********************************************************
10
-
11
- // This function is called when a project is opened or re-opened (e.g. due to
12
- // the project's config changing)
13
-
14
- module.exports = (on, config) => {
15
- // `on` is used to hook into various events Cypress emits
16
- // `config` is the resolved Cypress config
17
- };
@@ -1,23 +0,0 @@
1
- import '@plone/volto-testing/cypress/support/commands';
2
-
3
- // Print cypress-axe violations to the terminal
4
- function printAccessibilityViolations(violations) {
5
- cy.task(
6
- 'table',
7
- violations.map(({ id, impact, description, nodes }) => ({
8
- impact,
9
- description: `${description} (${id})`,
10
- nodes: nodes.length,
11
- })),
12
- );
13
- }
14
-
15
- Cypress.Commands.add(
16
- 'checkAccessibility',
17
- (subject, { skipFailures = false } = {}) => {
18
- cy.checkA11y(subject, null, printAccessibilityViolations, skipFailures);
19
- },
20
- {
21
- prevSubject: 'optional',
22
- },
23
- );
@@ -1,23 +0,0 @@
1
- import 'cypress-axe';
2
- import 'cypress-file-upload';
3
- import './commands';
4
- import 'cypress-axe';
5
- import { setup, teardown } from './reset-fixture';
6
-
7
- beforeEach(function () {
8
- cy.setCookie('confirm_cookies', '1');
9
- cy.setCookie('confirm_tracking', '1');
10
- cy.setCookie('confirm_facebook', '1');
11
- cy.setCookie('confirm_youtube', '1');
12
- cy.log('Setting up API fixture');
13
- if (!Cypress.env('a11y')) {
14
- setup();
15
- }
16
- });
17
-
18
- afterEach(function () {
19
- cy.log('Tearing down API fixture');
20
- if (!Cypress.env('a11y')) {
21
- teardown();
22
- }
23
- });
@@ -1,45 +0,0 @@
1
- function setup() {
2
- const api_url = Cypress.env('API_PATH') || 'http://localhost:55001/plone';
3
- cy.request({
4
- method: 'POST',
5
- url: `${api_url}/RobotRemote`,
6
- headers: { Accept: 'text/xml', 'content-type': 'text/xml' },
7
- body:
8
- '<?xml version="1.0"?><methodCall><methodName>run_keyword</methodName><params><param><value><string>remote_zodb_setup</string></value></param><param><value><array><data><value><string>plone.app.robotframework.testing.PLONE_ROBOT_TESTING</string></value></data></array></value></param></params></methodCall>',
9
- }).then(() => cy.log('Setting up API fixture'));
10
- }
11
-
12
- function teardown() {
13
- const api_url = Cypress.env('API_PATH') || 'http://localhost:55001/plone';
14
- cy.request({
15
- method: 'POST',
16
- url: `${api_url}/RobotRemote`,
17
- headers: { Accept: 'text/xml', 'content-type': 'text/xml' },
18
- body:
19
- '<?xml version="1.0"?><methodCall><methodName>run_keyword</methodName><params><param><value><string>remote_zodb_teardown</string></value></param><param><value><array><data><value><string>plone.app.robotframework.testing.PLONE_ROBOT_TESTING</string></value></data></array></value></param></params></methodCall>',
20
- }).then(() => cy.log('Tearing down API fixture'));
21
- }
22
-
23
- function main() {
24
- const command = process.argv[2];
25
- switch (command) {
26
- case 'setup':
27
- setup();
28
- break;
29
- case 'teardown':
30
- teardown();
31
- break;
32
- default:
33
- setup();
34
- }
35
- }
36
-
37
- // This is the equivalent of `if __name__ == '__main__'` in Python :)
38
- if (require.main === module) {
39
- main();
40
- }
41
-
42
- module.exports = {
43
- setup,
44
- teardown,
45
- };
@@ -1,14 +0,0 @@
1
- export const createSlateBlock = () => {
2
- cy.get('.ui.basic.icon.button.block-add-button').first().click();
3
- cy.get('.blocks-chooser .title').contains('Text').click();
4
- cy.get('.ui.basic.icon.button.slate').contains('Text').click();
5
- return getSelectedSlateEditor();
6
- };
7
-
8
- export const getSelectedSlateEditor = () => {
9
- return cy.get('.slate-editor.selected [contenteditable=true]').click();
10
- };
11
-
12
- export const getSlateEditorAndType = (selector, type) => {
13
- return cy.get(selector).focus().click().wait(1000).type(type).wait(1000);
14
- };
File without changes
@@ -1,30 +0,0 @@
1
- describe('a11y tests', () => {
2
- beforeEach(() => {
3
- // Cypress starts out with a blank slate for each test
4
- // so we must tell it to visit our website with the `cy.visit()` command.
5
- // Since we want to visit the same URL at the start of all our tests,
6
- // we include it in our beforeEach function so that it runs before each test
7
- cy.visit('/');
8
- });
9
-
10
- // Accordion Block
11
- it('Accordion Block (/block/block-accordion)', () => {
12
- cy.navigate('/block/block-accordion');
13
- cy.wait(2000);
14
- cy.injectAxe();
15
- cy.configureAxe({
16
- rules: [
17
- // the example page intentionally omits the h1
18
- {
19
- id: 'page-has-heading-one',
20
- enabled: false,
21
- },
22
- {
23
- id: 'duplicate-id',
24
- enabled: false,
25
- },
26
- ],
27
- });
28
- cy.checkAccessibility();
29
- });
30
- });
@@ -1,26 +0,0 @@
1
-
2
- describe('a11y tests', () => {
3
- beforeEach(() => {
4
- // Cypress starts out with a blank slate for each test
5
- // so we must tell it to visit our website with the `cy.visit()` command.
6
- // Since we want to visit the same URL at the start of all our tests,
7
- // we include it in our beforeEach function so that it runs before each test
8
- cy.visit('/');
9
- });
10
-
11
- it('Home page (/)', () => {
12
- cy.navigate('/');
13
- cy.wait(2000);
14
- cy.injectAxe();
15
- cy.configureAxe({
16
- rules: [
17
- // the example home page intentionally omits the h1
18
- {
19
- id: 'page-has-heading-one',
20
- enabled: false,
21
- },
22
- ],
23
- });
24
- cy.checkAccessibility();
25
- });
26
- });
@@ -1,18 +0,0 @@
1
- describe('a11y tests', () => {
2
- beforeEach(() => {
3
- // Cypress starts out with a blank slate for each test
4
- // so we must tell it to visit our website with the `cy.visit()` command.
5
- // Since we want to visit the same URL at the start of all our tests,
6
- // we include it in our beforeEach function so that it runs before each test
7
- cy.visit('/');
8
- });
9
-
10
- //Button
11
- it('Button-Block (/block/button-block)', () => {
12
- cy.navigate('/block/button-block');
13
- cy.wait(2000);
14
- cy.injectAxe();
15
- cy.configureAxe();
16
- cy.checkAccessibility();
17
- });
18
- });
@@ -1,18 +0,0 @@
1
- describe('a11y tests', () => {
2
- beforeEach(() => {
3
- // Cypress starts out with a blank slate for each test
4
- // so we must tell it to visit our website with the `cy.visit()` command.
5
- // Since we want to visit the same URL at the start of all our tests,
6
- // we include it in our beforeEach function so that it runs before each test
7
- cy.visit('/');
8
- });
9
-
10
- //Event
11
- it('Event (/content-types/event)', () => {
12
- cy.navigate('/content-types/event');
13
- cy.wait(2000);
14
- cy.injectAxe();
15
- cy.configureAxe();
16
- cy.checkAccessibility();
17
- });
18
- });
@@ -1,18 +0,0 @@
1
- describe('a11y tests', () => {
2
- beforeEach(() => {
3
- // Cypress starts out with a blank slate for each test
4
- // so we must tell it to visit our website with the `cy.visit()` command.
5
- // Since we want to visit the same URL at the start of all our tests,
6
- // we include it in our beforeEach function so that it runs before each test
7
- cy.visit('/');
8
- });
9
-
10
- //File
11
- it('File (/content-types/file)', () => {
12
- cy.navigate('/content-types/file');
13
- cy.wait(2000);
14
- cy.injectAxe();
15
- cy.configureAxe();
16
- cy.checkAccessibility();
17
- });
18
- });
@@ -1,18 +0,0 @@
1
- describe('a11y tests', () => {
2
- beforeEach(() => {
3
- // Cypress starts out with a blank slate for each test
4
- // so we must tell it to visit our website with the `cy.visit()` command.
5
- // Since we want to visit the same URL at the start of all our tests,
6
- // we include it in our beforeEach function so that it runs before each test
7
- cy.visit('/');
8
- });
9
-
10
- // grid block
11
- it('Grid-Block (/block/grid-block)', () => {
12
- cy.navigate('/block/grid-block');
13
- cy.wait(2000);
14
- cy.injectAxe();
15
- cy.configureAxe();
16
- cy.checkAccessibility();
17
- });
18
- });
@@ -1,18 +0,0 @@
1
- describe('a11y tests', () => {
2
- beforeEach(() => {
3
- // Cypress starts out with a blank slate for each test
4
- // so we must tell it to visit our website with the `cy.visit()` command.
5
- // Since we want to visit the same URL at the start of all our tests,
6
- // we include it in our beforeEach function so that it runs before each test
7
- cy.visit('/');
8
- });
9
-
10
- // grid block Image
11
- it('Grid-Block Image (/block/grid-block/image)', () => {
12
- cy.navigate('/block/grid-block/image');
13
- cy.wait(2000);
14
- cy.injectAxe();
15
- cy.configureAxe();
16
- cy.checkAccessibility();
17
- });
18
- });
@@ -1,18 +0,0 @@
1
- describe('a11y tests', () => {
2
- beforeEach(() => {
3
- // Cypress starts out with a blank slate for each test
4
- // so we must tell it to visit our website with the `cy.visit()` command.
5
- // Since we want to visit the same URL at the start of all our tests,
6
- // we include it in our beforeEach function so that it runs before each test
7
- cy.visit('/');
8
- });
9
-
10
- // grid block listing
11
- it('Grid-Block Listing (/block/grid-block/listing)', () => {
12
- cy.navigate('/block/grid-block/listing');
13
- cy.wait(2000);
14
- cy.injectAxe();
15
- cy.configureAxe();
16
- cy.checkAccessibility();
17
- });
18
- });
@@ -1,18 +0,0 @@
1
- describe('a11y tests', () => {
2
- beforeEach(() => {
3
- // Cypress starts out with a blank slate for each test
4
- // so we must tell it to visit our website with the `cy.visit()` command.
5
- // Since we want to visit the same URL at the start of all our tests,
6
- // we include it in our beforeEach function so that it runs before each test
7
- cy.visit('/');
8
- });
9
-
10
- // grid Teaser block
11
- it('Grid-Block Teaser (/block/grid-block/teaser)', () => {
12
- cy.navigate('/block/grid-block/teaser');
13
- cy.wait(2000);
14
- cy.injectAxe();
15
- cy.configureAxe();
16
- cy.checkAccessibility();
17
- });
18
- });
@@ -1,33 +0,0 @@
1
- describe('a11y tests', () => {
2
- beforeEach(() => {
3
- // Cypress starts out with a blank slate for each test
4
- // so we must tell it to visit our website with the `cy.visit()` command.
5
- // Since we want to visit the same URL at the start of all our tests,
6
- // we include it in our beforeEach function so that it runs before each test
7
- cy.visit('/');
8
- });
9
-
10
- // grid tex block
11
- it('Grid-Block text (/block/grid-block/text)', () => {
12
- cy.navigate('/block/grid-block/text');
13
- cy.wait(2000);
14
- cy.injectAxe();
15
- cy.configureAxe({
16
- rules: [
17
- // there are copies of slate h2,
18
- // which have with the same id
19
- {
20
- id: 'duplicate-id-active',
21
- enabled: false,
22
- },
23
- // there are missing heading of grid-block
24
- // because we are using multiple grid block
25
- {
26
- id: 'empty-heading',
27
- enabled: false,
28
- },
29
- ],
30
- });
31
- cy.checkAccessibility();
32
- });
33
- });
@@ -1,18 +0,0 @@
1
- describe('a11y tests', () => {
2
- beforeEach(() => {
3
- // Cypress starts out with a blank slate for each test
4
- // so we must tell it to visit our website with the `cy.visit()` command.
5
- // Since we want to visit the same URL at the start of all our tests,
6
- // we include it in our beforeEach function so that it runs before each test
7
- cy.visit('/');
8
- });
9
-
10
- // Heading
11
- it('Heading-Block (/block/heading-block)', () => {
12
- cy.navigate('/block/heading-block');
13
- cy.wait(2000);
14
- cy.injectAxe();
15
- cy.configureAxe();
16
- cy.checkAccessibility();
17
- });
18
- });
@@ -1,18 +0,0 @@
1
- describe('a11y tests', () => {
2
- beforeEach(() => {
3
- // Cypress starts out with a blank slate for each test
4
- // so we must tell it to visit our website with the `cy.visit()` command.
5
- // Since we want to visit the same URL at the start of all our tests,
6
- // we include it in our beforeEach function so that it runs before each test
7
- cy.visit('/');
8
- });
9
-
10
- // Highlight Block
11
- it('Highlight-Block (/block/highlight-block)', () => {
12
- cy.navigate('/block/highlight-block');
13
- cy.wait(2000);
14
- cy.injectAxe();
15
- cy.configureAxe();
16
- cy.checkAccessibility();
17
- });
18
- });
@@ -1,18 +0,0 @@
1
- describe('a11y tests', () => {
2
- beforeEach(() => {
3
- // Cypress starts out with a blank slate for each test
4
- // so we must tell it to visit our website with the `cy.visit()` command.
5
- // Since we want to visit the same URL at the start of all our tests,
6
- // we include it in our beforeEach function so that it runs before each test
7
- cy.visit('/');
8
- });
9
-
10
- // Image-Block
11
- it('Image-Block (/block/image-block)', () => {
12
- cy.navigate('/block/image-block');
13
- cy.wait(2000);
14
- cy.injectAxe();
15
- cy.configureAxe();
16
- cy.checkAccessibility();
17
- });
18
- });
@@ -1,18 +0,0 @@
1
- describe('a11y tests', () => {
2
- beforeEach(() => {
3
- // Cypress starts out with a blank slate for each test
4
- // so we must tell it to visit our website with the `cy.visit()` command.
5
- // Since we want to visit the same URL at the start of all our tests,
6
- // we include it in our beforeEach function so that it runs before each test
7
- cy.visit('/');
8
- });
9
-
10
- //Image
11
- it('Image (/content-types/image)', () => {
12
- cy.navigate('/content-types/image');
13
- cy.wait(2000);
14
- cy.injectAxe();
15
- cy.configureAxe();
16
- cy.checkAccessibility();
17
- });
18
- });
@@ -1,18 +0,0 @@
1
- describe('a11y tests', () => {
2
- beforeEach(() => {
3
- // Cypress starts out with a blank slate for each test
4
- // so we must tell it to visit our website with the `cy.visit()` command.
5
- // Since we want to visit the same URL at the start of all our tests,
6
- // we include it in our beforeEach function so that it runs before each test
7
- cy.visit('/');
8
- });
9
-
10
- // Introduction-Block
11
- it('Introduction-Block (/block/introduction-block)', () => {
12
- cy.navigate('/block/introduction-block');
13
- cy.wait(2000);
14
- cy.injectAxe();
15
- cy.configureAxe();
16
- cy.checkAccessibility();
17
- });
18
- });
@@ -1,18 +0,0 @@
1
- describe('a11y tests', () => {
2
- beforeEach(() => {
3
- // Cypress starts out with a blank slate for each test
4
- // so we must tell it to visit our website with the `cy.visit()` command.
5
- // Since we want to visit the same URL at the start of all our tests,
6
- // we include it in our beforeEach function so that it runs before each test
7
- cy.visit('/');
8
- });
9
-
10
- //Link
11
- it('link (/content-types/internal-link)', () => {
12
- cy.navigate('/content-types/internal-link');
13
- cy.wait(2000);
14
- cy.injectAxe();
15
- cy.configureAxe();
16
- cy.checkAccessibility();
17
- });
18
- });
@@ -1,31 +0,0 @@
1
- describe('a11y tests', () => {
2
- beforeEach(() => {
3
- // Cypress starts out with a blank slate for each test
4
- // so we must tell it to visit our website with the `cy.visit()` command.
5
- // Since we want to visit the same URL at the start of all our tests,
6
- // we include it in our beforeEach function so that it runs before each test
7
- cy.visit('/');
8
- });
9
-
10
- // Listing-block
11
- it('Listing-block (/block/listing-block)', () => {
12
- cy.navigate('/block/listing-block');
13
- cy.wait(2000);
14
- cy.injectAxe();
15
- cy.configureAxe({
16
- // Disabling 'image-alt'
17
- // semantic-ui-react's Embed doesn't include an alt tag for the placeholder image
18
- rules: [
19
- {
20
- id: 'image-alt',
21
- enabled: false,
22
- },
23
- {
24
- id: 'nested-interactive',
25
- enabled: false,
26
- },
27
- ],
28
- });
29
- cy.checkAccessibility();
30
- });
31
- });
@@ -1,27 +0,0 @@
1
- describe('a11y tests', () => {
2
- beforeEach(() => {
3
- // Cypress starts out with a blank slate for each test
4
- // so we must tell it to visit our website with the `cy.visit()` command.
5
- // Since we want to visit the same URL at the start of all our tests,
6
- // we include it in our beforeEach function so that it runs before each test
7
- cy.visit('/');
8
- });
9
-
10
- // Maps block
11
- it('Maps Block (/block/maps-block)', () => {
12
- cy.navigate('/block/maps-block');
13
- cy.wait(2000);
14
- cy.injectAxe();
15
- cy.configureAxe({
16
- rules: [
17
- // there are two copies of slate h3,
18
- // which have with the same id
19
- {
20
- id: 'duplicate-id-active',
21
- enabled: false,
22
- },
23
- ],
24
- });
25
- cy.checkAccessibility();
26
- });
27
- });
@@ -1,27 +0,0 @@
1
- describe('a11y tests', () => {
2
- beforeEach(() => {
3
- // Cypress starts out with a blank slate for each test
4
- // so we must tell it to visit our website with the `cy.visit()` command.
5
- // Since we want to visit the same URL at the start of all our tests,
6
- // we include it in our beforeEach function so that it runs before each test
7
- cy.visit('/');
8
- });
9
-
10
- //news-item
11
- it('news-item (/content-types/news-item)', () => {
12
- cy.navigate('/content-types/news-item');
13
- cy.wait(2000);
14
- cy.injectAxe();
15
- cy.configureAxe({
16
- rules: [
17
- // there are two copies of slate h3,
18
- // which have with the same id
19
- {
20
- id: 'duplicate-id-active',
21
- enabled: false,
22
- },
23
- ],
24
- });
25
- cy.checkAccessibility();
26
- });
27
- });