|
1 | | -import {assert, expect} from '@open-wc/testing' |
| 1 | +import {assert} from '@open-wc/testing' |
2 | 2 | import '../src/index.ts' |
3 | 3 |
|
4 | 4 | describe('tab-container', function () { |
@@ -37,16 +37,9 @@ describe('tab-container', function () { |
37 | 37 | }) |
38 | 38 |
|
39 | 39 | 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 | | - |
43 | 40 | document.body.innerHTML = '' |
44 | 41 | }) |
45 | 42 |
|
46 | | - it('has accessible markup', function () { |
47 | | - expect(document.body).to.be.accessible() |
48 | | - }) |
49 | | - |
50 | 43 | it('click works and `tab-container-changed` event is dispatched', function () { |
51 | 44 | const tabContainer = document.querySelector('tab-container') |
52 | 45 | const tabs = document.querySelectorAll('button') |
@@ -220,16 +213,9 @@ describe('tab-container', function () { |
220 | 213 | }) |
221 | 214 |
|
222 | 215 | 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 | | - |
226 | 216 | document.body.innerHTML = '' |
227 | 217 | }) |
228 | 218 |
|
229 | | - it('has accessible markup', function () { |
230 | | - expect(document.body).to.be.accessible() |
231 | | - }) |
232 | | - |
233 | 219 | it('only switches closest tab-containers on click', () => { |
234 | 220 | const tabs = Array.from(document.querySelectorAll('.test-top > [role="tablist"] [role="tab"]')) |
235 | 221 | const nestedTabs = Array.from(document.querySelectorAll('.test-nested > [role="tablist"] > [role="tab"]')) |
@@ -313,16 +299,9 @@ describe('tab-container', function () { |
313 | 299 | }) |
314 | 300 |
|
315 | 301 | 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 | | - |
319 | 302 | document.body.innerHTML = '' |
320 | 303 | }) |
321 | 304 |
|
322 | | - it('has accessible markup', function () { |
323 | | - expect(document.body).to.be.accessible() |
324 | | - }) |
325 | | - |
326 | 305 | it('up and down keyboard shortcuts work and `tab-container-changed` events are dispatched', () => { |
327 | 306 | const tabContainer = document.querySelector('tab-container') |
328 | 307 | const tabs = document.querySelectorAll('button') |
|
0 commit comments