Skip to content

Commit 2f6ee23

Browse files
authored
Merge pull request #71 from github/remove-to-be-accessible-checks
remove .to.be.accessible() checks
2 parents 1655676 + d738639 commit 2f6ee23

1 file changed

Lines changed: 1 addition & 22 deletions

File tree

test/test.js

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {assert, expect} from '@open-wc/testing'
1+
import {assert} from '@open-wc/testing'
22
import '../src/index.ts'
33

44
describe('tab-container', function () {
@@ -37,16 +37,9 @@ describe('tab-container', function () {
3737
})
3838

3939
afterEach(function () {
40-
// Check to make sure we still have accessible markup after the test finishes running.
41-
expect(document.body).to.be.accessible()
42-
4340
document.body.innerHTML = ''
4441
})
4542

46-
it('has accessible markup', function () {
47-
expect(document.body).to.be.accessible()
48-
})
49-
5043
it('click works and `tab-container-changed` event is dispatched', function () {
5144
const tabContainer = document.querySelector('tab-container')
5245
const tabs = document.querySelectorAll('button')
@@ -220,16 +213,9 @@ describe('tab-container', function () {
220213
})
221214

222215
afterEach(function () {
223-
// Check to make sure we still have accessible markup after the test finishes running.
224-
expect(document.body).to.be.accessible()
225-
226216
document.body.innerHTML = ''
227217
})
228218

229-
it('has accessible markup', function () {
230-
expect(document.body).to.be.accessible()
231-
})
232-
233219
it('only switches closest tab-containers on click', () => {
234220
const tabs = Array.from(document.querySelectorAll('.test-top > [role="tablist"] [role="tab"]'))
235221
const nestedTabs = Array.from(document.querySelectorAll('.test-nested > [role="tablist"] > [role="tab"]'))
@@ -313,16 +299,9 @@ describe('tab-container', function () {
313299
})
314300

315301
afterEach(function () {
316-
// Check to make sure we still have accessible markup after the test finishes running.
317-
expect(document.body).to.be.accessible()
318-
319302
document.body.innerHTML = ''
320303
})
321304

322-
it('has accessible markup', function () {
323-
expect(document.body).to.be.accessible()
324-
})
325-
326305
it('up and down keyboard shortcuts work and `tab-container-changed` events are dispatched', () => {
327306
const tabContainer = document.querySelector('tab-container')
328307
const tabs = document.querySelectorAll('button')

0 commit comments

Comments
 (0)