Skip to content

Commit

Permalink
fix: pois-list test with new htmlValidate rules #172
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab committed Feb 29, 2024
1 parent d58463b commit 9d966e4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cypress/e2e/category/pois-list.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ const hostnames = {
'http://127.0.0.1:3000': '/fixtures/teritorio/references/',
}

const htmlValidateRules = {
rules: {
'no-dup-class': 0,
'wcag/h63': 0,
'input-missing-label': 0,
},
}

describe('pois table', () => {
beforeEach(() => {
mockSSRAPI(hostnames, teritorioReferenceAPIFixture, {
Expand All @@ -30,7 +38,7 @@ describe('pois table', () => {
cy.get('td')
.contains(teritorioReferenceAPIFixture.pois.features[0].properties.name as string)

cy.htmlvalidate()
cy.htmlvalidate(htmlValidateRules)
})

it('should be interative', () => {
Expand All @@ -50,6 +58,6 @@ describe('pois table', () => {
// Unselect the selector before validate
cy.get('body').click()

cy.htmlvalidate()
cy.htmlvalidate(htmlValidateRules)
})
})

0 comments on commit 9d966e4

Please sign in to comment.