File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 } ,
You can’t perform that action at this time.
0 commit comments