diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 51bc641..8aad6b4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,11 +24,6 @@ jobs: - run: | npm run lint npm test - - name: Setup chrome - if: ${{ success() && github.event_name != 'pull_request' && matrix.node-version == '20.x' }} - uses: browser-actions/setup-chrome@v1 - with: - chrome-version: 120 - name: Runtime test if: ${{ success() && github.event_name != 'pull_request' && matrix.node-version == '20.x' }} run: | diff --git a/wdio.conf.js b/wdio.conf.js index 0799e88..4cc1f9f 100644 --- a/wdio.conf.js +++ b/wdio.conf.js @@ -1,3 +1,7 @@ +import path from 'node:path' +import url from 'node:url' +const __dirname = path.dirname(url.fileURLToPath(import.meta.url)) + export const config = { // // ==================== @@ -49,8 +53,13 @@ export const config = { // capabilities: [ { - // capabilities for local browser web tests - browserName: 'chrome', // or "firefox", "microsoftedge", "safari" + browserName: 'chrome', + 'goog:chromeOptions': { + args: ['headless', 'disable-gpu'], + prefs: { + 'download.default_directory': __dirname, + }, + }, }, ],