Skip to content

Commit

Permalink
remove .to.be.accessible() checks
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Feb 14, 2024
1 parent aa116c9 commit d738639
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {assert, expect} from '@open-wc/testing'
import {assert} from '@open-wc/testing'
import '../src/index.ts'

describe('tab-container', function () {
Expand Down Expand Up @@ -37,16 +37,9 @@ describe('tab-container', function () {
})

afterEach(function () {
// Check to make sure we still have accessible markup after the test finishes running.
expect(document.body).to.be.accessible()

document.body.innerHTML = ''
})

it('has accessible markup', function () {
expect(document.body).to.be.accessible()
})

it('click works and `tab-container-changed` event is dispatched', function () {
const tabContainer = document.querySelector('tab-container')
const tabs = document.querySelectorAll('button')
Expand Down Expand Up @@ -220,16 +213,9 @@ describe('tab-container', function () {
})

afterEach(function () {
// Check to make sure we still have accessible markup after the test finishes running.
expect(document.body).to.be.accessible()

document.body.innerHTML = ''
})

it('has accessible markup', function () {
expect(document.body).to.be.accessible()
})

it('only switches closest tab-containers on click', () => {
const tabs = Array.from(document.querySelectorAll('.test-top > [role="tablist"] [role="tab"]'))
const nestedTabs = Array.from(document.querySelectorAll('.test-nested > [role="tablist"] > [role="tab"]'))
Expand Down Expand Up @@ -313,16 +299,9 @@ describe('tab-container', function () {
})

afterEach(function () {
// Check to make sure we still have accessible markup after the test finishes running.
expect(document.body).to.be.accessible()

document.body.innerHTML = ''
})

it('has accessible markup', function () {
expect(document.body).to.be.accessible()
})

it('up and down keyboard shortcuts work and `tab-container-changed` events are dispatched', () => {
const tabContainer = document.querySelector('tab-container')
const tabs = document.querySelectorAll('button')
Expand Down

0 comments on commit d738639

Please sign in to comment.