Skip to content

Commit

Permalink
sleep() for src tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sashafirsov committed Jun 19, 2023
1 parent 86cc63d commit d3594fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/src-attribute.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ describe('src attribute', () => {
it('src=svg', async () => {
Svg.args.src='/src/demo/confused.svg';
const el = await renderStory(Svg);
sleep(100)

expect(el.querySelectorAll('my-component').length).to.equal(0);
expect(el.querySelector('custom-element').firstElementChild.tagName.startsWith('DCE-')).to.equal(true);
Expand All @@ -48,6 +49,7 @@ describe('src attribute', () => {
it('src=404', async () => {
NoSvg.args.src='/src/demo/404.svg';
const el = await renderStory(NoSvg);
sleep(100)

expect(el.querySelectorAll('my-component').length).to.equal(0);
expect(el.querySelector('custom-element').getAttribute('tag')).to.equal('');
Expand Down

0 comments on commit d3594fc

Please sign in to comment.