Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
kyubisation authored Jan 15, 2024
1 parent 96c7c8e commit ad33cb7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/notification/notification.e2e.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assert, expect, fixture } from '@open-wc/testing';
import { aTimeout, assert, expect, fixture } from '@open-wc/testing';
import { html } from 'lit/static-html.js';

import { SbbButtonElement } from '../button';
Expand Down Expand Up @@ -44,6 +44,7 @@ describe('sbb-notification', () => {

expect(element).to.have.attribute('data-state', 'closed');

await aTimeout(0);
element = document.querySelector('sbb-notification');
expect(element).to.be.null;
});
Expand Down Expand Up @@ -71,6 +72,7 @@ describe('sbb-notification', () => {

expect(element).to.have.attribute('data-state', 'closed');

await aTimeout(0);
element = document.querySelector('sbb-notification');
expect(element).to.be.null;
});
Expand Down

0 comments on commit ad33cb7

Please sign in to comment.