wait longer to prevent flakiness

pull/1460/head
Cory LaViska 2023-07-18 13:13:59 -04:00
rodzic 5016d27af7
commit 9d592f4e08
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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.