Skip to content

Commit 8e05272

Browse files
committed
tighten 500 error detection in dashboard navigation
1 parent fb75634 commit 8e05272

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/e2e/setup/browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export async function navigateToDashboard(
7070
// Retry on 500 errors
7171
for (let attempt = 1; attempt <= 3; attempt++) {
7272
const pageText = (await browserPage.textContent('body')) ?? '' // eslint-disable-line no-await-in-loop
73-
if (!pageText.includes('500') && !pageText.includes('Internal Server Error')) break
73+
if (!pageText.includes('500: Internal Server Error') && !pageText.includes('Internal Server Error')) break
7474
await browserPage.waitForTimeout(3000) // eslint-disable-line no-await-in-loop
7575
await browserPage.reload({waitUntil: 'domcontentloaded'}) // eslint-disable-line no-await-in-loop
7676
}

0 commit comments

Comments
 (0)