wait longer to prevent flakiness

This commit is contained in:
Cory LaViska
2023-07-18 13:13:59 -04:00
parent 5016d27af7
commit 9d592f4e08

View File

@@ -175,8 +175,8 @@ describe('<sl-icon>', () => {
expect(svg).to.be.instanceof(SVGElement);
expect(use).to.be.instanceof(SVGUseElement);
// This is kind of hacky...but with no way to check "load", we just do a timeout :shrug:
await aTimeout(200);
// This is kind of hacky...but with no way to check "load", we just use a timeout
await aTimeout(1000);
// Theres no way to really test that the icon rendered properly. We just gotta trust the browser to do it's thing :)
// However, we can check the <use> size. It should be greater than 0x0 if loaded properly.