Skip to content

Commit

Permalink
move test
Browse files Browse the repository at this point in the history
  • Loading branch information
dlockhart committed Jul 8, 2022
1 parent e4bc328 commit 95ec27b
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions test/button.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@ describe('Buttons', () => {
});
});

describe('events', () => {
it('should trigger click event', async() => {
const el = await fixture(html`<d2l-navigation-button text="test"></d2l-navigation-button>`);
setTimeout(() => el.shadowRoot.querySelector('button').click());
await oneEvent(el, 'click');
});
});

});

describe('d2l-navigation-button-close', () => {
Expand All @@ -64,6 +56,23 @@ describe('Buttons', () => {

});

describe('d2l-navigation-notification-icon', () => {

describe('accessibility', () => {
it('should pass all aXe tests', async() => {
const el = await fixture(html`<d2l-navigation-notification-icon icon="tier3:notification-bell" text="test"></d2l-navigation-notification-icon>`);
await expect(el).to.be.accessible();
});
});

describe('constructor', () => {
it('should construct', () => {
runConstructor('d2l-navigation-notification-icon');
});
});

});

describe('d2l-navigation-button-icon', () => {

describe('accessibility', () => {
Expand Down Expand Up @@ -99,20 +108,11 @@ describe('Buttons', () => {
});
});

});

describe('d2l-navigation-notification-icon', () => {

describe('accessibility', () => {
it('should pass all aXe tests', async() => {
const el = await fixture(html`<d2l-navigation-notification-icon icon="tier3:notification-bell" text="test"></d2l-navigation-notification-icon>`);
await expect(el).to.be.accessible();
});
});

describe('constructor', () => {
it('should construct', () => {
runConstructor('d2l-navigation-notification-icon');
describe('events', () => {
it('should trigger click event', async() => {
const el = await fixture(html`<d2l-navigation-button-icon icon="tier3:gear" text="test"></d2l-navigation-button-icon>`);
setTimeout(() => el.shadowRoot.querySelector('button').click());
await oneEvent(el, 'click');
});
});

Expand Down

0 comments on commit 95ec27b

Please sign in to comment.