Skip to content

Commit f7e0739

Browse files
Playwright CI - use Google Chrome channel for classic scrollbar support
1 parent 0bd6e90 commit f7e0739

2 files changed

Lines changed: 5 additions & 17 deletions

File tree

.github/workflows/playwright_tests.yml

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

133-
- name: Install Chromium
134-
run: |
135-
sudo apt-get update
136-
sudo apt-get install -y --no-install-recommends \
137-
chromium \
138-
fonts-liberation fonts-noto-color-emoji fonts-freefont-ttf \
139-
libatk-bridge2.0-0 libdrm2 libxkbcommon0 libxcomposite1 \
140-
libxdamage1 libxrandr2 libgbm1 libasound2t64 \
141-
libpango-1.0-0 libcairo2 libcups2 libnspr4 libnss3 \
142-
2>/dev/null || {
143-
echo "apt chromium not available, using Playwright bundled"
144-
cd e2e/testcafe-devextreme && npx playwright install chromium --with-deps
145-
}
146-
CHROMIUM=$(command -v chromium 2>/dev/null || echo "")
147-
if [ -n "$CHROMIUM" ] && $CHROMIUM --version 2>/dev/null; then
148-
echo "PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH=$CHROMIUM" >> $GITHUB_ENV
149-
fi
133+
- name: Install Playwright browsers
134+
working-directory: ./e2e/testcafe-devextreme
135+
run: npx playwright install chrome
150136

151137
- name: Run Playwright tests
152138
working-directory: ./e2e/testcafe-devextreme

e2e/testcafe-devextreme/playwright.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,14 @@ export default defineConfig({
123123
name: 'chromium',
124124
use: {
125125
browserName: 'chromium',
126+
...(process.env.CI ? { channel: 'chrome' } : {}),
126127
},
127128
},
128129
{
129130
name: 'chromium-1185',
130131
use: {
131132
browserName: 'chromium',
133+
...(process.env.CI ? { channel: 'chrome' } : {}),
132134
viewport: { width: 1185, height: 800 },
133135
},
134136
},

0 commit comments

Comments
 (0)