You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 30, 2020. It is now read-only.
`"The callback function which was passed did not return an element or non-empty array of elements. waitForElementToBeRemoved requires that the element(s) exist before waiting for removal."`,
18
+
);
19
+
});
20
+
21
+
test('requires an unempty array of elements to exist first',()=>{
`"The callback function which was passed did not return an element or non-empty array of elements. waitForElementToBeRemoved requires that the element(s) exist before waiting for removal."`,
24
+
);
25
+
});
26
+
27
+
test('times out after 4500ms by default',()=>{
28
+
const{ rootInstance }=render(<View/>);
29
+
constpromise=expect(
30
+
waitForElementToBeRemoved(()=>rootInstance),
31
+
).rejects.toThrowErrorMatchingInlineSnapshot(`"Timed out in waitForElementToBeRemoved."`);
'The callback function which was passed did not return an element or non-empty array of elements. waitForElementToBeRemoved requires that the element(s) exist before waiting for removal.',
0 commit comments