We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fc800b commit a64253eCopy full SHA for a64253e
fission/src/test/bootstrap/AppMount.test.tsx
@@ -32,7 +32,13 @@ describe("React Mounting", async () => {
32
})
33
34
test("Static stylesheets load", async () => {
35
- await wait(500) // need time to load from web
+ for (let i = 0; i<50;i++) {
36
+ await wait(200)
37
+ if (document.styleSheets.length >= 2) {
38
+ break
39
+ }
40
41
+
42
expect(document.styleSheets.length).toBe(2)
43
const iterable = document.fonts.values()
44
let iterator = iterable.next()
@@ -87,7 +93,7 @@ describe("React Mounting", async () => {
87
93
screen.unmount()
88
94
89
95
await annotate("Screen unmounted gracefully")
90
- })
96
+ }, { timeout: 20000 })
91
97
92
98
99
function wait(milliseconds: number) {
0 commit comments