Skip to content

Commit 8c1e077

Browse files
committed
chore: fix tests
1 parent 7102c0a commit 8c1e077

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/component.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assert, expect, fixture } from '@open-wc/testing';
1+
import { assert, expect, fixture, nextFrame } from '@open-wc/testing';
22
import { html } from 'lit-html';
33
import '../src/component';
44

@@ -26,6 +26,7 @@ describe('cosmoz-component', () => {
2626
const el = await fixture(html`<cosmoz-component></cosmoz-component>`);
2727
const button = el.shadowRoot?.querySelector('button');
2828
button?.click();
29+
await nextFrame();
2930
const text = el.shadowRoot?.textContent;
3031
expect(text).to.include('Count: 1');
3132
});

0 commit comments

Comments
 (0)