Fix E2E test failures by installing Playwright browsers in CI#14
Fix E2E test failures by installing Playwright browsers in CI#14
Conversation
- 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>
There was a problem hiding this comment.
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
Test Results Summary101 tests 69 ✅ 2s ⏱️ For more details on these failures, see this check. Results for commit 7e5579e. ♻️ This comment has been updated with latest results. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 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:
|
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:
Changes
Testing
The workflow will now:
Related Issues
Fixes failing workflow run #22206338010