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 element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.
102
108
```
@@ -116,9 +122,14 @@ function wait<T>(
116
122
}
117
123
):Promise<T>
118
124
```
119
-
Previously, wait was a wrapper around wait-for-expect and used polling instead of a MutationObserver to look for changes. It is now an alias to waitFor and will be removed in a future release.
120
125
121
-
Unlike wait, the callback parameter is mandatory in waitFor. Although you can migrate an existing `wait()` call to `waitFor( () => {} )`, it is considered bad practice to use an empty callback because it will make the tests more fragile.
126
+
Previously, wait was a wrapper around wait-for-expect and used polling instead
127
+
of a MutationObserver to look for changes. It is now an alias to waitFor and
128
+
will be removed in a future release.
129
+
130
+
Unlike wait, the callback parameter is mandatory in waitFor. Although you can
131
+
migrate an existing `wait()` call to `waitFor( () => {} )`, it is considered bad
132
+
practice to use an empty callback because it will make the tests more fragile.
0 commit comments