Skip to content

Fix E2E test failures by installing Playwright browsers in CI#14

Closed
mpaulosky wants to merge 3 commits intomainfrom
fix/playwright-ci-integration
Closed

Fix E2E test failures by installing Playwright browsers in CI#14
mpaulosky wants to merge 3 commits intomainfrom
fix/playwright-ci-integration

Conversation

@mpaulosky
Copy link
Copy Markdown
Owner

Summary

Resolves failing E2E tests in the squad-ci.yml workflow by installing Playwright browser binaries.

Problem

The E2E test suite (IssueManager.Web.E2E.Tests) was failing with:
\
Microsoft.Playwright.PlaywrightException:
Executable doesn't exist at /home/runner/.cache/ms-playwright/chromium_headless_shell-1161/chrome-linux/headless_shell
\\

This caused all 17 E2E tests to fail on GitHub Actions because Playwright browser binaries (Chromium) were not installed in the CI environment.

Solution

Added a new step 'Install Playwright Browsers' to the build pipeline that:

  1. Installs the Playwright CLI tool globally
  2. Installs the Chromium browser binary
  3. Installs Chromium system dependencies for Linux

Changes

  • Modified: .github/workflows/squad-ci.yml\
    • Added step after 'Build solution' to install Playwright browsers
    • Placement ensures browsers are available before test step runs

Testing

The workflow will now:

  • Install Playwright CLI and browsers (takes ~30 seconds)
  • Run all E2E tests with available Chromium browser
  • All 17 E2E tests should pass

Related Issues

Fixes failing workflow run #22206338010

- Add new step 'Install Playwright Browsers' to squad-ci.yml after build step
- Installs Playwright CLI tool globally
- Installs Chromium browser binary for E2E tests
- Installs Chromium system dependencies for Linux CI environment
- Resolves PlaywrightException: 'Executable doesn't exist at /home/runner/.cache/ms-playwright/...'
- Fixes all 17 failing E2E tests in IssueManager.Web.E2E.Tests project

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 20, 2026 00:59
@mpaulosky mpaulosky added the bug Something isn't working label Feb 20, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request addresses E2E test failures in the CI pipeline by installing Playwright browser binaries before running tests. The solution adds a new workflow step that installs the Playwright CLI tool globally and downloads the Chromium browser with its system dependencies, resolving the issue where tests failed because browser binaries were missing in the GitHub Actions environment.

Changes:

  • Added Playwright browser installation step to squad-ci.yml workflow
  • Installation includes Playwright CLI tool, Chromium browser, and system dependencies for Linux
  • Step is positioned after the build phase and before test execution

Comment thread .github/workflows/squad-ci.yml Outdated
Comment thread .github/workflows/squad-ci.yml Outdated
Comment thread .github/workflows/squad-ci.yml Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 20, 2026

Test Results Summary

101 tests   69 ✅  2s ⏱️
  6 suites   0 💤
  6 files    32 ❌

For more details on these failures, see this check.

Results for commit 7e5579e.

♻️ This comment has been updated with latest results.

mpaulosky and others added 2 commits February 19, 2026 17:03
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46.22%. Comparing base (ce5cfd2) to head (7e5579e).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #14   +/-   ##
=======================================
  Coverage   46.22%   46.22%           
=======================================
  Files          25       25           
  Lines         411      411           
  Branches       17       17           
=======================================
  Hits          190      190           
  Misses        218      218           
  Partials        3        3           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mpaulosky mpaulosky deleted the fix/playwright-ci-integration branch February 20, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants