Skip to content

Commit badaeeb

Browse files
fixed: Another attempt to fix the ci
1 parent 3d34166 commit badaeeb

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/test.yml

-5
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ jobs:
2424
- run: |
2525
npm run lint
2626
npm test
27-
- name: Setup chrome
28-
if: ${{ success() && github.event_name != 'pull_request' && matrix.node-version == '20.x' }}
29-
uses: browser-actions/setup-chrome@v1
30-
with:
31-
chrome-version: 120
3227
- name: Runtime test
3328
if: ${{ success() && github.event_name != 'pull_request' && matrix.node-version == '20.x' }}
3429
run: |

wdio.conf.js

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import path from 'node:path'
2+
import url from 'node:url'
3+
const __dirname = path.dirname(url.fileURLToPath(import.meta.url))
4+
15
export const config = {
26
//
37
// ====================
@@ -49,8 +53,13 @@ export const config = {
4953
//
5054
capabilities: [
5155
{
52-
// capabilities for local browser web tests
53-
browserName: 'chrome', // or "firefox", "microsoftedge", "safari"
56+
browserName: 'chrome',
57+
'goog:chromeOptions': {
58+
args: ['headless', 'disable-gpu'],
59+
prefs: {
60+
'download.default_directory': __dirname,
61+
},
62+
},
5463
},
5564
],
5665

0 commit comments

Comments
 (0)