add correct await usage for chai accessible()
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import { html, fixture, expect } from '@open-wc/testing';
|
||||
import '.';
|
||||
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
|
||||
import { UmbInstallerConsent } from './installer-consent.element';
|
||||
import { UmbInstallerDatabase } from './installer-database.element';
|
||||
import { UmbInstallerInstalling } from './installer-installing.element';
|
||||
@@ -13,12 +16,12 @@ describe('UmbInstaller', () => {
|
||||
element = await fixture(html`<umb-installer></umb-installer>`);
|
||||
});
|
||||
|
||||
it('is defined with its own instance', async () => {
|
||||
it('is defined with its own instance', () => {
|
||||
expect(element).to.be.instanceOf(UmbInstaller);
|
||||
});
|
||||
|
||||
it('passes the a11y audit', async () => {
|
||||
expect(element).shadowDom.to.be.accessible();
|
||||
await expect(element).shadowDom.to.be.accessible();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -29,12 +32,12 @@ describe('UmbInstallerLayout', () => {
|
||||
element = await fixture(html`<umb-installer-layout></umb-installer-layout>`);
|
||||
});
|
||||
|
||||
it('is defined with its own instance', async () => {
|
||||
it('is defined with its own instance', () => {
|
||||
expect(element).to.be.instanceOf(UmbInstallerLayout);
|
||||
});
|
||||
|
||||
it('passes the a11y audit', async () => {
|
||||
expect(element).shadowDom.to.be.accessible();
|
||||
await expect(element).shadowDom.to.be.accessible();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -45,12 +48,12 @@ describe('UmbInstallerUser', () => {
|
||||
element = await fixture(html`<umb-installer-user></umb-installer-user>`);
|
||||
});
|
||||
|
||||
it('is defined with its own instance', async () => {
|
||||
it('is defined with its own instance', () => {
|
||||
expect(element).to.be.instanceOf(UmbInstallerUser);
|
||||
});
|
||||
|
||||
it('passes the a11y audit', async () => {
|
||||
expect(element).shadowDom.to.be.accessible();
|
||||
await expect(element).to.be.accessible();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -61,12 +64,12 @@ describe('UmbInstallerConsent', () => {
|
||||
element = await fixture(html`<umb-installer-consent></umb-installer-consent>`);
|
||||
});
|
||||
|
||||
it('is defined with its own instance', async () => {
|
||||
it('is defined with its own instance', () => {
|
||||
expect(element).to.be.instanceOf(UmbInstallerConsent);
|
||||
});
|
||||
|
||||
it('passes the a11y audit', async () => {
|
||||
expect(element).shadowDom.to.be.accessible();
|
||||
await expect(element).shadowDom.to.be.accessible();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -77,12 +80,12 @@ describe('UmbInstallerDatabase', () => {
|
||||
element = await fixture(html`<umb-installer-database></umb-installer-database>`);
|
||||
});
|
||||
|
||||
it('is defined with its own instance', async () => {
|
||||
it('is defined with its own instance', () => {
|
||||
expect(element).to.be.instanceOf(UmbInstallerDatabase);
|
||||
});
|
||||
|
||||
it('passes the a11y audit', async () => {
|
||||
expect(element).shadowDom.to.be.accessible();
|
||||
await expect(element).shadowDom.to.be.accessible();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -93,11 +96,11 @@ describe('UmbInstallerInstalling', () => {
|
||||
element = await fixture(html`<umb-installer-installing></umb-installer-installing>`);
|
||||
});
|
||||
|
||||
it('is defined with its own instance', async () => {
|
||||
it('is defined with its own instance', () => {
|
||||
expect(element).to.be.instanceOf(UmbInstallerInstalling);
|
||||
});
|
||||
|
||||
it('passes the a11y audit', async () => {
|
||||
expect(element).shadowDom.to.be.accessible();
|
||||
await expect(element).shadowDom.to.be.accessible();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user