Skip to content

Commit

Permalink
chore(tiles): fix failing tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rkettelerij committed Nov 12, 2024
1 parent 64f81bb commit 0e13c12
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/cypress/e2e/common.cy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
describe('OGC API Common tests', () => {

// Fix for https://github.com/cypress-io/cypress/issues/1502#issuecomment-832403402
Cypress.on("window:before:load", () => {
cy.state("jQuery", Cypress.$);
});

it('landing page should have no a11y violations', () => {
cy.visit('/')
cy.injectAxe()
Expand Down
5 changes: 5 additions & 0 deletions tests/cypress/e2e/features.cy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
describe('OGC API Features tests', () => {

// Fix for https://github.com/cypress-io/cypress/issues/1502#issuecomment-832403402
Cypress.on("window:before:load", () => {
cy.state("jQuery", Cypress.$);
});

it('features page should have no a11y violations', () => {
cy.visit('/collections/addresses/items')
cy.injectAxe()
Expand Down
5 changes: 5 additions & 0 deletions tests/cypress/e2e/styles.cy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
describe('OGC API Styles tests', () => {

// Fix for https://github.com/cypress-io/cypress/issues/1502#issuecomment-832403402
Cypress.on("window:before:load", () => {
cy.state("jQuery", Cypress.$);
});

it('styles page should have no a11y violations', () => {
cy.visit('/styles')
cy.injectAxe()
Expand Down
5 changes: 5 additions & 0 deletions tests/cypress/e2e/tiles.cy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
describe('OGC API Tiles tests', () => {

// Fix for https://github.com/cypress-io/cypress/issues/1502#issuecomment-832403402
Cypress.on("window:before:load", () => {
cy.state("jQuery", Cypress.$);
});

it('dataset tiles page should have no a11y violations', () => {
cy.visit('/tiles')
cy.injectAxe()
Expand Down

0 comments on commit 0e13c12

Please sign in to comment.