Skip to content

Commit

Permalink
edit: increase retries for collaboration playwright test
Browse files Browse the repository at this point in the history
  • Loading branch information
vinaybadgujar102 committed Oct 4, 2024
1 parent 8e368ad commit 7f11bc6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: xvfb-run npx playwright test
run: xvfb-run npx playwright test --headed
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default defineConfig({
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
retries: process.env.CI ? 3 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
Expand Down
1 change: 1 addition & 0 deletions playwright/utils/collaboration-feature-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export async function waitForResponseConfirmation(
const url = response.url();
const text = await response.text();
const isMatch = status === 200 && url.includes(urlContains) && text.includes(responseBodyIncludes);
console.log(text);

console.log(`Attempt ${attempt} - Response details:
Status: ${status}
Expand Down

0 comments on commit 7f11bc6

Please sign in to comment.