expect-webdriverio 4.12.0 → 4.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,8 +21,12 @@ export async function toBeElementsArrayOfSize(received, expectedValue, options =
|
|
|
21
21
|
}
|
|
22
22
|
let elements = await received;
|
|
23
23
|
const pass = await waitUntil(async () => {
|
|
24
|
+
const isPassing = compareNumbers(elements.length, numberOptions);
|
|
25
|
+
if (isPassing) {
|
|
26
|
+
return isPassing;
|
|
27
|
+
}
|
|
24
28
|
elements = await refetchElements(elements, numberOptions.wait, true);
|
|
25
|
-
return
|
|
29
|
+
return false;
|
|
26
30
|
}, isNot, { ...numberOptions, ...options });
|
|
27
31
|
const error = numberError(numberOptions);
|
|
28
32
|
const message = enhanceError(elements, error, elements.length, this, verb, expectation, '', numberOptions);
|