Skip to content

Commit 3855701

Browse files
committed
fix ff events
1 parent db38aef commit 3855701

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/unit/events.test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,10 @@ test("Should not fire initialize and before-initialize events until after defer-
275275
assert.isTrue(initializeSpy.notCalled)
276276

277277
rhinoEditor.removeAttribute("defer-initialize")
278-
await rhinoEditor.updateComplete
279-
await aTimeout(10)
278+
279+
await waitUntil(() => {
280+
return beforeInitializeSpy.called && initializeSpy.called
281+
})
280282

281283
assert.isTrue(beforeInitializeSpy.calledOnce)
282284
assert.isTrue(initializeSpy.calledOnce)

0 commit comments

Comments
 (0)