Skip to content

Commit 87576d2

Browse files
committed
add a check for succesfull content request on axe tests
1 parent 3837f35 commit 87576d2

19 files changed

Lines changed: 19 additions & 19 deletions

frontend/cypress/tests/a11y/imageContenttype.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('a11y tests', () => {
66
// Since we want to visit the same URL at the start of all our tests,
77
// we include it in our beforeEach function so that it runs before each test
88
cy.visit('/');
9-
cy.wait('@content');
9+
cy.wait('@content').its('response.statusCode').should('eq', 200);
1010
});
1111

1212
//Image

frontend/cypress/tests/a11y/introductionBlock.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('a11y tests', () => {
66
// Since we want to visit the same URL at the start of all our tests,
77
// we include it in our beforeEach function so that it runs before each test
88
cy.visit('/');
9-
cy.wait('@content');
9+
cy.wait('@content').its('response.statusCode').should('eq', 200);
1010
});
1111

1212
// Introduction-Block

frontend/cypress/tests/a11y/linkContenttype.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('a11y tests', () => {
66
// Since we want to visit the same URL at the start of all our tests,
77
// we include it in our beforeEach function so that it runs before each test
88
cy.visit('/');
9-
cy.wait('@content');
9+
cy.wait('@content').its('response.statusCode').should('eq', 200);
1010
});
1111

1212
//Link

frontend/cypress/tests/a11y/listingBlock.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('a11y tests', () => {
66
// Since we want to visit the same URL at the start of all our tests,
77
// we include it in our beforeEach function so that it runs before each test
88
cy.visit('/');
9-
cy.wait('@content');
9+
cy.wait('@content').its('response.statusCode').should('eq', 200);
1010
});
1111

1212
// Listing-block

frontend/cypress/tests/a11y/locationContenttype.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('a11y tests', () => {
66
// Since we want to visit the same URL at the start of all our tests,
77
// we include it in our beforeEach function so that it runs before each test
88
cy.visit('/');
9-
cy.wait('@content');
9+
cy.wait('@content').its('response.statusCode').should('eq', 200);
1010
});
1111

1212
// Location content type

frontend/cypress/tests/a11y/logosBlock.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('a11y tests', () => {
66
// Since we want to visit the same URL at the start of all our tests,
77
// we include it in our beforeEach function so that it runs before each test
88
cy.visit('/');
9-
cy.wait('@content');
9+
cy.wait('@content').its('response.statusCode').should('eq', 200);
1010
});
1111

1212
// Logos Block

frontend/cypress/tests/a11y/mapsBlock.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('a11y tests', () => {
66
// Since we want to visit the same URL at the start of all our tests,
77
// we include it in our beforeEach function so that it runs before each test
88
cy.visit('/');
9-
cy.wait('@content');
9+
cy.wait('@content').its('response.statusCode').should('eq', 200);
1010
});
1111

1212
// Maps block

frontend/cypress/tests/a11y/newsItemContenttype.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('a11y tests', () => {
66
// Since we want to visit the same URL at the start of all our tests,
77
// we include it in our beforeEach function so that it runs before each test
88
cy.visit('/');
9-
cy.wait('@content');
9+
cy.wait('@content').its('response.statusCode').should('eq', 200);
1010
});
1111

1212
//news-item

frontend/cypress/tests/a11y/organisationalunitContenttype.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('a11y tests', () => {
66
// Since we want to visit the same URL at the start of all our tests,
77
// we include it in our beforeEach function so that it runs before each test
88
cy.visit('/');
9-
cy.wait('@content');
9+
cy.wait('@content').its('response.statusCode').should('eq', 200);
1010
});
1111

1212
// Organisational unit content type

frontend/cypress/tests/a11y/pageContent.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('a11y tests', () => {
66
// Since we want to visit the same URL at the start of all our tests,
77
// we include it in our beforeEach function so that it runs before each test
88
cy.visit('/');
9-
cy.wait('@content');
9+
cy.wait('@content').its('response.statusCode').should('eq', 200);
1010
});
1111

1212
//Page

0 commit comments

Comments
 (0)