diff --git a/src/components/core/testing/private/a11y-tree-snapshot.ts b/src/components/core/testing/private/a11y-tree-snapshot.ts index db975d0875..57e4c576ba 100644 --- a/src/components/core/testing/private/a11y-tree-snapshot.ts +++ b/src/components/core/testing/private/a11y-tree-snapshot.ts @@ -1,4 +1,4 @@ -import { aTimeout, expect, fixture } from '@open-wc/testing'; +import { aTimeout, expect, fixture, fixtureCleanup } from '@open-wc/testing'; import { a11ySnapshot } from '@web/test-runner-commands'; import type { TemplateResult } from 'lit'; import { html } from 'lit/static-html.js'; @@ -18,6 +18,7 @@ async function a11yTreeEqualSnapshot(): Promise { const htmlWrapper = await fixture(html`

${JSON.stringify(snapshot, null, 2)}

`); await expect(htmlWrapper).to.be.equalSnapshot(); + fixtureCleanup(); } /**