diff --git a/packages/web-functionality/src/index.ts b/packages/web-functionality/src/index.ts index 12879fb35..a91c9fb50 100755 --- a/packages/web-functionality/src/index.ts +++ b/packages/web-functionality/src/index.ts @@ -26,7 +26,7 @@ const handler = async (): Promise => { await runTests() break } catch (error) { - console.error(error) + console.error(`Failed attempt ${index}:`, error) if (index === 2) { process.exit(error?.exitCode || 1) } diff --git a/packages/web-functionality/src/smoke.test.ts b/packages/web-functionality/src/smoke.test.ts index 4b57cad5e..32b15337c 100644 --- a/packages/web-functionality/src/smoke.test.ts +++ b/packages/web-functionality/src/smoke.test.ts @@ -19,5 +19,5 @@ describe('Smoke tests', () => { // Expect results count is shown correctly await expect(page).toMatchElement('[data-testid="streaming-progress-count"]', { text: '1 result' }) - }) + }, 5000) // Bigger timeout is required to avoid flakes. Default is 500ms. })