From d73863974ee61e54d1f5f1800909507255b1ac8f Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Wed, 14 Feb 2024 17:00:59 +0000 Subject: [PATCH] remove .to.be.accessible() checks --- test/test.js | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/test/test.js b/test/test.js index ad48c1f..2585514 100644 --- a/test/test.js +++ b/test/test.js @@ -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 () { @@ -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') @@ -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"]')) @@ -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')