kopia lustrzana https://github.com/shoelace-style/shoelace
wait longer to prevent flakiness
rodzic
5016d27af7
commit
9d592f4e08
|
@ -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.
|
||||
|
|
Ładowanie…
Reference in New Issue