Skip to content

Commit 49d70c7

Browse files
Playwright CI - use system Chromium for classic scrollbar support
1 parent 2de22ae commit 49d70c7

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/playwright_tests.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,20 @@ jobs:
130130
- name: Install dependencies
131131
run: pnpm install --frozen-lockfile
132132

133-
- name: Install Playwright browsers
134-
working-directory: ./e2e/testcafe-devextreme
135-
run: npx playwright install chromium
133+
- name: Install system Chromium
134+
run: |
135+
if ! command -v chromium &>/dev/null && ! command -v chromium-browser &>/dev/null; then
136+
sudo apt-get update && sudo apt-get install -y chromium || sudo apt-get install -y chromium-browser
137+
fi
138+
CHROMIUM_PATH=$(command -v chromium || command -v chromium-browser || echo "")
139+
if [ -z "$CHROMIUM_PATH" ]; then
140+
echo "Chromium not found, falling back to Playwright bundled browser"
141+
cd e2e/testcafe-devextreme && npx playwright install chromium
142+
else
143+
echo "PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH=$CHROMIUM_PATH" >> $GITHUB_ENV
144+
echo "Using system Chromium at: $CHROMIUM_PATH"
145+
$CHROMIUM_PATH --version
146+
fi
136147
137148
- name: Run Playwright tests
138149
working-directory: ./e2e/testcafe-devextreme

0 commit comments

Comments
 (0)