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
@@ -10,13 +10,17 @@ export default async function waitForElementToBeRemoved<T>(
10
10
options?: WaitForOptions
11
11
): Promise<T>{
12
12
// Created here so we get a nice stacktrace
13
-
const timeoutError =newError('Timed out in waitForElementToBeRemoved.');
13
+
const timeoutError =newErrorWithStack(
14
+
'Timed out in waitForElementToBeRemoved.',
15
+
waitForElementToBeRemoved
16
+
);
14
17
15
18
// Elements have to be present initally and then removed.
16
19
constinitialElements=expectation();
17
20
if(isRemoved(initialElements)){
18
-
thrownewError(
19
-
'The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.'
21
+
thrownewErrorWithStack(
22
+
'The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.',
0 commit comments