Skip to content

Commit 2e016b4

Browse files
authored
fix(webdriverio): work with @wdio/globals (#882)
* fix(webdriverio): work with @wdio/globals * test * headless * fix node20 error * changes
1 parent ddba444 commit 2e016b4

File tree

10 files changed

+11406
-2989
lines changed

10 files changed

+11406
-2989
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ module.exports = {
3939
{
4040
files: ['*.test.ts', '*.test.tsx', '*.spec.ts', '*.spec.tsx'],
4141
rules: {
42+
'@typescript-eslint/no-empty-function': 'off',
4243
'@typescript-eslint/no-explicit-any': 'off',
4344
'@typescript-eslint/no-non-null-assertion': 'off'
4445
}

.github/workflows/tests.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,22 @@ jobs:
162162
- run: npm run coverage --workspace=packages/playwright
163163
- run: npm run test:esm --workspace=packages/playwright
164164

165+
wdio_globals_test:
166+
strategy:
167+
matrix:
168+
node: [16, 18, 20]
169+
runs-on: ubuntu-latest
170+
timeout-minutes: 15
171+
needs: lint
172+
steps:
173+
- uses: actions/checkout@v4
174+
- uses: actions/setup-node@v3
175+
with:
176+
node-version: ${{ matrix.node }}
177+
cache: 'npm'
178+
- run: npm ci
179+
- run: npm run test --workspace=test/wdio
180+
165181
axe_core_test:
166182
if: github.ref_name == 'master' || startsWith(github.ref_name, 'release')
167183
runs-on: ubuntu-latest
@@ -174,4 +190,4 @@ jobs:
174190
node-version: 18
175191
cache: 'npm'
176192
- run: npm ci
177-
- run: npm test --workspace=test/axe-core
193+
- run: npm test --workspace=test/axe-core

0 commit comments

Comments
 (0)