From b74457d360be232a5005f66f61e67f96e7eaf38c Mon Sep 17 00:00:00 2001 From: Devon Powell Date: Wed, 17 Jun 2026 15:18:45 -0400 Subject: [PATCH] Restore WebdriverIO integration tests --- .c8rc.json | 6 +++--- .github/workflows/ci.yml | 4 ++++ package.json | 1 + test/integration/report-validation.test.js | 6 ++++++ 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.c8rc.json b/.c8rc.json index 43377e02..8c74e44c 100644 --- a/.c8rc.json +++ b/.c8rc.json @@ -1,10 +1,10 @@ { "all": true, "check-coverage": true, - "statements": 70, - "branches": 70, + "statements": 80, + "branches": 75, "functions": 85, - "lines": 70, + "lines": 80, "include": [ "src/**/*.{js,cjs}" ], diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 204f670e..387c4fea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,6 +59,10 @@ jobs: run: npm ci - name: Install dependencies (Playwright) run: npx playwright install --with-deps + - name: Setup dependencies (WebdriverIO) + run: | + /usr/bin/chromedriver --version + echo "CHROMEDRIVER_PATH=/usr/bin/chromedriver" >> $GITHUB_ENV - name: Run tests id: tests run: npm run test:all diff --git a/package.json b/package.json index 78cc68ca..9c3fd577 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "test:integration:mocha": "mocha --config test/integration/data/configs/mocha.cjs || exit 0", "test:integration:playwright": "playwright test --config test/integration/data/configs/playwright.js || exit 0", "test:integration:web-test-runner": "wtr --config test/integration/data/configs/web-test-runner.js || exit 0", + "test:integration:webdriverio": "wdio run test/integration/data/configs/webdriverio.cjs || exit 0", "test:integration:validate-reports": "mocha --reporter-options reportPath=./d2l-test-report-validation.json --spec test/integration/report-validation.test.js", "test:unit": "mocha --spec \"test/unit/**/*.test.js\"" }, diff --git a/test/integration/report-validation.test.js b/test/integration/report-validation.test.js index 058edfce..6e03a159 100644 --- a/test/integration/report-validation.test.js +++ b/test/integration/report-validation.test.js @@ -9,6 +9,7 @@ import { Report } from '../../src/helpers/report.cjs'; import { testReportLatestPartial as testReportLatestPartialMocha } from './data/validation/test-report-mocha.js'; import { testReportLatestPartial as testReportLatestPartialPlaywright } from './data/validation/test-report-playwright.js'; import { testReportLatestPartial as testReportLatestPartialWebTestRunner } from './data/validation/test-report-web-test-runner.js'; +import { testReportLatestPartial as testReportLatestPartialWebdriverIO } from './data/validation/test-report-webdriverio.js'; import yn from 'yn'; use(chaiSubset); @@ -43,6 +44,11 @@ const reportTests = [{ version: latestReportVersion, path: './d2l-test-report-web-test-runner.json', expected: testReportLatestPartialWebTestRunner +}, { + name: 'webdriverio', + version: latestReportVersion, + path: './d2l-test-report-webdriverio.json', + expected: testReportLatestPartialWebdriverIO }]; const results = reportTests.reduce((acc, cur) => { acc[cur.name] = {