Skip to content

Stabilize CI Playwright test job by making execution CI-aware - #1

Closed
SamuelMtzA with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-failing-github-actions-job
Closed

SamuelMtzA with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-failing-github-actions-job

Conversation

Copilot AI commented Aug 20, 2026 •

Copy link
Copy Markdown

The test GitHub Actions job was failing due to flaky navigation to external test targets during Playwright runs (net::ERR_ABORTED on login page loads). This PR makes Playwright execution CI-aware to reduce transient failures without changing local developer defaults.

  • CI execution profile

    • Detects CI via process.env.CI.
    • Runs tests non-parallel in CI (workers: 1, fullyParallel: false) to avoid concurrent navigation pressure on external dependencies.
  • Transient failure tolerance

    • Enables a single retry in CI (retries: 1) for intermittent network/navigation failures.
    • Preserves local behavior (workers: 3, fullyParallel: true, retries: 0).
  • Scope

    • Single-file change in playwright.config.ts; no test logic or selectors modified.
const isCI = !!process.env.CI;

export default defineConfig({
  fullyParallel: !isCI,
  retries: isCI ? 1 : 0,
  workers: isCI ? 1 : 3,
});

Co-authored-by: SamuelMtzA <13129339+SamuelMtzA@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions job 'test' Stabilize CI Playwright test job by making execution CI-aware Aug 20, 2026
Copilot AI requested a review from SamuelMtzA August 20, 2026 06:18
@SamuelMtzA SamuelMtzA closed this Aug 20, 2026
Copilot stopped work on behalf of SamuelMtzA due to an error August 20, 2026 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants