diff --git a/frontend/cypress/tests/a11y/imageContenttype.cy.js b/frontend/cypress/tests/a11y/imageContenttype.cy.js index e19ad76d9..fd7e70493 100644 --- a/frontend/cypress/tests/a11y/imageContenttype.cy.js +++ b/frontend/cypress/tests/a11y/imageContenttype.cy.js @@ -6,7 +6,7 @@ describe('a11y tests', () => { // Since we want to visit the same URL at the start of all our tests, // we include it in our beforeEach function so that it runs before each test cy.visit('/'); - cy.wait('@content'); + cy.wait('@content').its('response.statusCode').should('eq', 200); }); //Image diff --git a/frontend/cypress/tests/a11y/introductionBlock.cy.js b/frontend/cypress/tests/a11y/introductionBlock.cy.js index 2dc2bc452..86aaea459 100644 --- a/frontend/cypress/tests/a11y/introductionBlock.cy.js +++ b/frontend/cypress/tests/a11y/introductionBlock.cy.js @@ -6,7 +6,7 @@ describe('a11y tests', () => { // Since we want to visit the same URL at the start of all our tests, // we include it in our beforeEach function so that it runs before each test cy.visit('/'); - cy.wait('@content'); + cy.wait('@content').its('response.statusCode').should('eq', 200); }); // Introduction-Block diff --git a/frontend/cypress/tests/a11y/linkContenttype.cy.js b/frontend/cypress/tests/a11y/linkContenttype.cy.js index 608bf20c2..becfa3611 100644 --- a/frontend/cypress/tests/a11y/linkContenttype.cy.js +++ b/frontend/cypress/tests/a11y/linkContenttype.cy.js @@ -6,7 +6,7 @@ describe('a11y tests', () => { // Since we want to visit the same URL at the start of all our tests, // we include it in our beforeEach function so that it runs before each test cy.visit('/'); - cy.wait('@content'); + cy.wait('@content').its('response.statusCode').should('eq', 200); }); //Link diff --git a/frontend/cypress/tests/a11y/listingBlock.cy.js b/frontend/cypress/tests/a11y/listingBlock.cy.js index afd515002..193473c48 100644 --- a/frontend/cypress/tests/a11y/listingBlock.cy.js +++ b/frontend/cypress/tests/a11y/listingBlock.cy.js @@ -6,7 +6,7 @@ describe('a11y tests', () => { // Since we want to visit the same URL at the start of all our tests, // we include it in our beforeEach function so that it runs before each test cy.visit('/'); - cy.wait('@content'); + cy.wait('@content').its('response.statusCode').should('eq', 200); }); // Listing-block diff --git a/frontend/cypress/tests/a11y/locationContenttype.cy.js b/frontend/cypress/tests/a11y/locationContenttype.cy.js index c9a48031d..c5a4b29b3 100644 --- a/frontend/cypress/tests/a11y/locationContenttype.cy.js +++ b/frontend/cypress/tests/a11y/locationContenttype.cy.js @@ -6,7 +6,7 @@ describe('a11y tests', () => { // Since we want to visit the same URL at the start of all our tests, // we include it in our beforeEach function so that it runs before each test cy.visit('/'); - cy.wait('@content'); + cy.wait('@content').its('response.statusCode').should('eq', 200); }); // Location content type diff --git a/frontend/cypress/tests/a11y/logosBlock.cy.js b/frontend/cypress/tests/a11y/logosBlock.cy.js index 4406240d3..965992225 100644 --- a/frontend/cypress/tests/a11y/logosBlock.cy.js +++ b/frontend/cypress/tests/a11y/logosBlock.cy.js @@ -6,7 +6,7 @@ describe('a11y tests', () => { // Since we want to visit the same URL at the start of all our tests, // we include it in our beforeEach function so that it runs before each test cy.visit('/'); - cy.wait('@content'); + cy.wait('@content').its('response.statusCode').should('eq', 200); }); // Logos Block diff --git a/frontend/cypress/tests/a11y/mapsBlock.cy.js b/frontend/cypress/tests/a11y/mapsBlock.cy.js index b5af823f9..33ef6bd8c 100644 --- a/frontend/cypress/tests/a11y/mapsBlock.cy.js +++ b/frontend/cypress/tests/a11y/mapsBlock.cy.js @@ -6,7 +6,7 @@ describe('a11y tests', () => { // Since we want to visit the same URL at the start of all our tests, // we include it in our beforeEach function so that it runs before each test cy.visit('/'); - cy.wait('@content'); + cy.wait('@content').its('response.statusCode').should('eq', 200); }); // Maps block diff --git a/frontend/cypress/tests/a11y/newsItemContenttype.cy.js b/frontend/cypress/tests/a11y/newsItemContenttype.cy.js index f3eeec77a..d12a90ca3 100644 --- a/frontend/cypress/tests/a11y/newsItemContenttype.cy.js +++ b/frontend/cypress/tests/a11y/newsItemContenttype.cy.js @@ -6,7 +6,7 @@ describe('a11y tests', () => { // Since we want to visit the same URL at the start of all our tests, // we include it in our beforeEach function so that it runs before each test cy.visit('/'); - cy.wait('@content'); + cy.wait('@content').its('response.statusCode').should('eq', 200); }); //news-item diff --git a/frontend/cypress/tests/a11y/organisationalunitContenttype.cy.js b/frontend/cypress/tests/a11y/organisationalunitContenttype.cy.js index 7e3f3a2c6..131fe3719 100644 --- a/frontend/cypress/tests/a11y/organisationalunitContenttype.cy.js +++ b/frontend/cypress/tests/a11y/organisationalunitContenttype.cy.js @@ -6,7 +6,7 @@ describe('a11y tests', () => { // Since we want to visit the same URL at the start of all our tests, // we include it in our beforeEach function so that it runs before each test cy.visit('/'); - cy.wait('@content'); + cy.wait('@content').its('response.statusCode').should('eq', 200); }); // Organisational unit content type diff --git a/frontend/cypress/tests/a11y/pageContent.cy.js b/frontend/cypress/tests/a11y/pageContent.cy.js index 654316194..bc2921867 100644 --- a/frontend/cypress/tests/a11y/pageContent.cy.js +++ b/frontend/cypress/tests/a11y/pageContent.cy.js @@ -6,7 +6,7 @@ describe('a11y tests', () => { // Since we want to visit the same URL at the start of all our tests, // we include it in our beforeEach function so that it runs before each test cy.visit('/'); - cy.wait('@content'); + cy.wait('@content').its('response.statusCode').should('eq', 200); }); //Page diff --git a/frontend/cypress/tests/a11y/personContenttype.cy.js b/frontend/cypress/tests/a11y/personContenttype.cy.js index 0d75a394a..ca467b54d 100644 --- a/frontend/cypress/tests/a11y/personContenttype.cy.js +++ b/frontend/cypress/tests/a11y/personContenttype.cy.js @@ -6,7 +6,7 @@ describe('a11y tests', () => { // Since we want to visit the same URL at the start of all our tests, // we include it in our beforeEach function so that it runs before each test cy.visit('/'); - cy.wait('@content'); + cy.wait('@content').its('response.statusCode').should('eq', 200); }); // Person content type diff --git a/frontend/cypress/tests/a11y/searchBlock.cy.js b/frontend/cypress/tests/a11y/searchBlock.cy.js index 166d6dbf4..aaa57be8e 100644 --- a/frontend/cypress/tests/a11y/searchBlock.cy.js +++ b/frontend/cypress/tests/a11y/searchBlock.cy.js @@ -6,7 +6,7 @@ describe('a11y tests', () => { // Since we want to visit the same URL at the start of all our tests, // we include it in our beforeEach function so that it runs before each test cy.visit('/'); - cy.wait('@content'); + cy.wait('@content').its('response.statusCode').should('eq', 200); }); // Search-block diff --git a/frontend/cypress/tests/a11y/separatorBlock.cy.js b/frontend/cypress/tests/a11y/separatorBlock.cy.js index 26647a4c2..210255dfd 100644 --- a/frontend/cypress/tests/a11y/separatorBlock.cy.js +++ b/frontend/cypress/tests/a11y/separatorBlock.cy.js @@ -6,7 +6,7 @@ describe('a11y tests', () => { // Since we want to visit the same URL at the start of all our tests, // we include it in our beforeEach function so that it runs before each test cy.visit('/'); - cy.wait('@content'); + cy.wait('@content').its('response.statusCode').should('eq', 200); }); // separator-block diff --git a/frontend/cypress/tests/a11y/sliderBlock.cy.js b/frontend/cypress/tests/a11y/sliderBlock.cy.js index 149c73d5f..3abac2cbe 100644 --- a/frontend/cypress/tests/a11y/sliderBlock.cy.js +++ b/frontend/cypress/tests/a11y/sliderBlock.cy.js @@ -6,7 +6,7 @@ describe('a11y tests', () => { // Since we want to visit the same URL at the start of all our tests, // we include it in our beforeEach function so that it runs before each test cy.visit('/'); - cy.wait('@content'); + cy.wait('@content').its('response.statusCode').should('eq', 200); }); // Slider Block diff --git a/frontend/cypress/tests/a11y/tableBlock.cy.js b/frontend/cypress/tests/a11y/tableBlock.cy.js index 7fcffa2de..dbd0676c7 100644 --- a/frontend/cypress/tests/a11y/tableBlock.cy.js +++ b/frontend/cypress/tests/a11y/tableBlock.cy.js @@ -6,7 +6,7 @@ describe('a11y tests', () => { // Since we want to visit the same URL at the start of all our tests, // we include it in our beforeEach function so that it runs before each test cy.visit('/'); - cy.wait('@content'); + cy.wait('@content').its('response.statusCode').should('eq', 200); }); // Table-block diff --git a/frontend/cypress/tests/a11y/teaserBlock.cy.js b/frontend/cypress/tests/a11y/teaserBlock.cy.js index 807c3407a..737967c48 100644 --- a/frontend/cypress/tests/a11y/teaserBlock.cy.js +++ b/frontend/cypress/tests/a11y/teaserBlock.cy.js @@ -6,7 +6,7 @@ describe('a11y tests', () => { // Since we want to visit the same URL at the start of all our tests, // we include it in our beforeEach function so that it runs before each test cy.visit('/'); - cy.wait('@content'); + cy.wait('@content').its('response.statusCode').should('eq', 200); }); // Teaser-block diff --git a/frontend/cypress/tests/a11y/textBlock.cy.js b/frontend/cypress/tests/a11y/textBlock.cy.js index 9b0d9e223..9aa16dae4 100644 --- a/frontend/cypress/tests/a11y/textBlock.cy.js +++ b/frontend/cypress/tests/a11y/textBlock.cy.js @@ -6,7 +6,7 @@ describe('a11y tests', () => { // Since we want to visit the same URL at the start of all our tests, // we include it in our beforeEach function so that it runs before each test cy.visit('/'); - cy.wait('@content'); + cy.wait('@content').its('response.statusCode').should('eq', 200); }); // Text-block diff --git a/frontend/cypress/tests/a11y/tocBlock.cy.js b/frontend/cypress/tests/a11y/tocBlock.cy.js index 6084e2df7..5df19e7ac 100644 --- a/frontend/cypress/tests/a11y/tocBlock.cy.js +++ b/frontend/cypress/tests/a11y/tocBlock.cy.js @@ -6,7 +6,7 @@ describe('a11y tests', () => { // Since we want to visit the same URL at the start of all our tests, // we include it in our beforeEach function so that it runs before each test cy.visit('/'); - cy.wait('@content'); + cy.wait('@content').its('response.statusCode').should('eq', 200); }); // Table of Contents diff --git a/frontend/cypress/tests/a11y/videoBlock.cy.js b/frontend/cypress/tests/a11y/videoBlock.cy.js index 3737eedf6..dbdceb279 100644 --- a/frontend/cypress/tests/a11y/videoBlock.cy.js +++ b/frontend/cypress/tests/a11y/videoBlock.cy.js @@ -6,7 +6,7 @@ describe('a11y tests', () => { // Since we want to visit the same URL at the start of all our tests, // we include it in our beforeEach function so that it runs before each test cy.visit('/'); - cy.wait('@content'); + cy.wait('@content').its('response.statusCode').should('eq', 200); }); // Video Block diff --git a/frontend/packages/volto-intranet/news/217.internal b/frontend/packages/volto-intranet/news/217.internal new file mode 100644 index 000000000..7090b5891 --- /dev/null +++ b/frontend/packages/volto-intranet/news/217.internal @@ -0,0 +1 @@ +add a check for succesfull content request on all axe a11y tests to avaoid checking the 404 page @jackahl