240 attempts should not just be 239 :D
This commit is contained in:
@@ -106,7 +106,7 @@ async function waitForPageWithText(
|
||||
} catch (error) {
|
||||
if (error.message.match(EXPECTED_LOAD_ERRORS)) {
|
||||
loadAttempts++;
|
||||
if (loadAttempts > maxLoadAttempts) {
|
||||
if (loadAttempts >= maxLoadAttempts) {
|
||||
throw new Error(
|
||||
`Failed to load page '${path}', max number of attempts reached`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user