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
[Error: 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.],
[Error: 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.],
249
+
[Error: Unable to find an element by: [data-testid="initial-element"]
250
+
251
+
[36m<div />[39m],
270
252
]
271
253
`)
254
+
expect(errorHandler).toHaveBeenNthCalledWith(
255
+
2,
256
+
newError(
257
+
'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.',
258
+
),
259
+
)
260
+
expect(errorHandler).toHaveBeenNthCalledWith(
261
+
3,
262
+
newError(
263
+
'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.',
264
+
),
265
+
)
272
266
})
273
267
274
268
test('works if a container is not defined',async()=>{
@@ -307,11 +301,7 @@ test('works if a container is not defined', async () => {
0 commit comments