Skip to content

Commit 22d7a0e

Browse files
authored
Release v4.9.1 (#1068)
No QA needed
2 parents 97a01bd + 9277b4f commit 22d7a0e

30 files changed

+5040
-8110
lines changed

.github/workflows/sync-master-develop.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ jobs:
1212
steps:
1313
- uses: dequelabs/action-sync-branches@v1
1414
with:
15-
github-token: ${{ secrets.GITHUB_TOKEN }}
15+
github-token: ${{ secrets.PAT }}
1616
pr-title: 'chore: merge master into develop'
17-
pr-reviewers: michael-siek,stephenmathieson
17+
pr-team-reviewers: axe-api-team
1818
pr-labels: chore
19-
pr-template: .github/PULL_REQUEST_TEMPLATE.md

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- run: npm ci
6060
# HACK: Force a TTY to enable browser-driver-manager to manipulate stdout.
6161
- shell: 'script -q -e -c "bash {0}"'
62-
run: npx browser-driver-manager install chromedriver=123 --verbose
62+
run: npx browser-driver-manager install chromedriver=125 --verbose
6363
working-directory: packages/cli
6464
- run: npm run coverage --workspace=packages/cli
6565

CHANGELOG.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,29 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6-
# [4.9.0](https://github.com/dequelabs/axe-core-npm/compare/v4.8.5...v4.9.0) (2024-04-01)
7-
6+
## [4.9.1](https://github.com/dequelabs/axe-core-npm/compare/v4.9.0...v4.9.1) (2024-05-15)
87

98
### Bug Fixes
109

11-
* get correct new window handle with Selenium 3 workaround ([#1031](https://github.com/dequelabs/axe-core-npm/issues/1031)) ([b72c735](https://github.com/dequelabs/axe-core-npm/commit/b72c73571c12c81c2ef3dc3ebe89e15769f0942b)), closes [#1027](https://github.com/dequelabs/axe-core-npm/issues/1027) [/github.com/dequelabs/axe-core-maven-html/blob/ad58b26a8d0e2f1afed33b2c5cbca22b54644b99/selenium/src/main/java/com/deque/html/axecore/extensions/WebDriverExtensions.java#L126](https://github.com//github.com/dequelabs/axe-core-maven-html/blob/ad58b26a8d0e2f1afed33b2c5cbca22b54644b99/selenium/src/main/java/com/deque/html/axecore/extensions/WebDriverExtensions.java/issues/L126) [#936](https://github.com/dequelabs/axe-core-npm/issues/936)
12-
10+
- **playwright:** skip unloaded iframes ([#1060](https://github.com/dequelabs/axe-core-npm/issues/1060)) ([d30dae4](https://github.com/dequelabs/axe-core-npm/commit/d30dae4a6fede397bc49b5171c4cb4c43e545b53))
1311

14-
### Features
12+
- Update axe-core to v4.9.1 ([#1055](https://github.com/dequelabs/axe-core-npm/issues/1055)) ([8644fbd](https://github.com/dequelabs/axe-core-npm/commit/8644fbd2d2b407c68b5ff3bd7b8368c6c173e355))
1513

16-
* Update axe-core to v4.9.0 ([#1028](https://github.com/dequelabs/axe-core-npm/issues/1028)) ([7e152b6](https://github.com/dequelabs/axe-core-npm/commit/7e152b65ff30b9e1cb26c3b0564457b32a0d35b2))
14+
# [4.9.0](https://github.com/dequelabs/axe-core-npm/compare/v4.8.5...v4.9.0) (2024-04-01)
1715

16+
### Bug Fixes
1817

18+
- get correct new window handle with Selenium 3 workaround ([#1031](https://github.com/dequelabs/axe-core-npm/issues/1031)) ([b72c735](https://github.com/dequelabs/axe-core-npm/commit/b72c73571c12c81c2ef3dc3ebe89e15769f0942b)), closes [#1027](https://github.com/dequelabs/axe-core-npm/issues/1027) [/github.com/dequelabs/axe-core-maven-html/blob/ad58b26a8d0e2f1afed33b2c5cbca22b54644b99/selenium/src/main/java/com/deque/html/axecore/extensions/WebDriverExtensions.java#L126](https://github.com//github.com/dequelabs/axe-core-maven-html/blob/ad58b26a8d0e2f1afed33b2c5cbca22b54644b99/selenium/src/main/java/com/deque/html/axecore/extensions/WebDriverExtensions.java/issues/L126) [#936](https://github.com/dequelabs/axe-core-npm/issues/936)
1919

20+
### Features
2021

22+
- Update axe-core to v4.9.0 ([#1028](https://github.com/dequelabs/axe-core-npm/issues/1028)) ([7e152b6](https://github.com/dequelabs/axe-core-npm/commit/7e152b65ff30b9e1cb26c3b0564457b32a0d35b2))
2123

2224
## [4.8.5](https://github.com/dequelabs/axe-core-npm/compare/v4.8.4...v4.8.5) (2024-02-08)
2325

24-
2526
### Bug Fixes
2627

27-
* Update axe-core to v4.8.4 ([#1008](https://github.com/dequelabs/axe-core-npm/issues/1008)) ([d54f145](https://github.com/dequelabs/axe-core-npm/commit/d54f145a4078c4730a850e694c9eb77297c23a35))
28-
29-
30-
31-
28+
- Update axe-core to v4.8.4 ([#1008](https://github.com/dequelabs/axe-core-npm/issues/1008)) ([d54f145](https://github.com/dequelabs/axe-core-npm/commit/d54f145a4078c4730a850e694c9eb77297c23a35))
3229

3330
## [4.8.4](https://github.com/dequelabs/axe-core-npm/compare/v4.8.3...v4.8.4) (2024-01-23)
3431

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "4.9.0"
2+
"version": "4.9.1"
33
}

package-lock.json

Lines changed: 4879 additions & 8045 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cli/CHANGELOG.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,21 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6-
# [4.9.0](https://github.com/dequelabs/axe-core-npm/compare/v4.8.5...v4.9.0) (2024-04-01)
7-
8-
9-
### Features
10-
11-
* Update axe-core to v4.9.0 ([#1028](https://github.com/dequelabs/axe-core-npm/issues/1028)) ([7e152b6](https://github.com/dequelabs/axe-core-npm/commit/7e152b65ff30b9e1cb26c3b0564457b32a0d35b2))
6+
## [4.9.1](https://github.com/dequelabs/axe-core-npm/compare/v4.9.0...v4.9.1) (2024-05-10)
127

8+
**Note:** Version bump only for package @axe-core/cli
139

10+
# [4.9.0](https://github.com/dequelabs/axe-core-npm/compare/v4.8.5...v4.9.0) (2024-04-01)
1411

12+
### Features
1513

14+
- Update axe-core to v4.9.0 ([#1028](https://github.com/dequelabs/axe-core-npm/issues/1028)) ([7e152b6](https://github.com/dequelabs/axe-core-npm/commit/7e152b65ff30b9e1cb26c3b0564457b32a0d35b2))
1615

1716
## [4.8.5](https://github.com/dequelabs/axe-core-npm/compare/v4.8.4...v4.8.5) (2024-02-08)
1817

19-
2018
### Bug Fixes
2119

22-
* Update axe-core to v4.8.4 ([#1008](https://github.com/dequelabs/axe-core-npm/issues/1008)) ([d54f145](https://github.com/dequelabs/axe-core-npm/commit/d54f145a4078c4730a850e694c9eb77297c23a35))
23-
24-
25-
26-
20+
- Update axe-core to v4.8.4 ([#1008](https://github.com/dequelabs/axe-core-npm/issues/1008)) ([d54f145](https://github.com/dequelabs/axe-core-npm/commit/d54f145a4078c4730a850e694c9eb77297c23a35))
2721

2822
## [4.8.4](https://github.com/dequelabs/axe-core-npm/compare/v4.8.3...v4.8.4) (2024-01-23)
2923

packages/cli/package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@axe-core/cli",
3-
"version": "4.9.0",
3+
"version": "4.9.1",
44
"description": "A CLI for accessibility testing using axe-core",
55
"author": {
66
"name": "Wilco Fiers",
@@ -47,23 +47,25 @@
4747
"testing"
4848
],
4949
"dependencies": {
50-
"@axe-core/webdriverjs": "^4.9.0",
51-
"axe-core": "~4.9.0",
50+
"@axe-core/webdriverjs": "^4.9.1",
51+
"axe-core": "~4.9.1",
5252
"chromedriver": "latest",
5353
"colors": "^1.4.0",
5454
"commander": "^9.4.1",
55-
"selenium-webdriver": "~4.17.0"
55+
"selenium-webdriver": "~4.20.0"
5656
},
5757
"devDependencies": {
5858
"@types/chai": "^4.3.3",
5959
"@types/chromedriver": "^81.0.1",
6060
"@types/mocha": "^10.0.0",
6161
"@types/selenium-webdriver": "^4.1.5",
62+
"@types/sinon": "^17.0.3",
6263
"chai": "^4.3.6",
6364
"execa": "5.1.1",
6465
"mocha": "^10.0.0",
6566
"nyc": "^15.1.0",
6667
"rimraf": "^5.0.5",
68+
"sinon": "^17.0.1",
6769
"tempy": "^1.0.0",
6870
"ts-node": "^10.9.1",
6971
"typescript": "^5.2.2"

packages/cli/src/lib/axe-test-urls.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const testPages = async (
1919
const currentUrl = urls[0].replace(/[,;]$/, '');
2020

2121
if (events?.onTestStart) {
22-
events?.onTestStart(currentUrl);
22+
events.onTestStart(currentUrl);
2323
}
2424

2525
if (config.timer) {

packages/cli/src/lib/utils.test.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { assert } from 'chai';
33
import tempy from 'tempy';
44
import { join } from 'path';
55
import { mkdirSync, writeFileSync, rmSync } from 'fs';
6-
import { dependencies } from '../../package.json';
76
import * as utils from './utils';
87

98
describe('utils', () => {
@@ -83,11 +82,7 @@ describe('utils', () => {
8382
writeFileSync(join(parentDirname, 'axe.js'), 'parent');
8483

8584
const cliDirname = join(tempDir, 'packages', 'cli');
86-
const nodeModDirname = join(
87-
cliDirname,
88-
'node_modules',
89-
'axe-core'
90-
);
85+
const nodeModDirname = join(cliDirname, 'node_modules', 'axe-core');
9186
mkdirSync(nodeModDirname, { recursive: true });
9287
writeFileSync(join(nodeModDirname, 'axe.js'), 'node modules');
9388

packages/cli/src/lib/webdriver.test.ts

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import { startDriver } from './webdriver';
44
import { WebDriver } from 'selenium-webdriver';
55
import chromedriver from 'chromedriver';
66
import chrome from 'selenium-webdriver/chrome';
7-
import type { Options } from 'selenium-webdriver/chrome';
87
import path from 'path';
98
import { WebdriverConfigParams } from '../types';
9+
import sinon from 'sinon';
10+
1011
describe('startDriver', () => {
1112
let config: WebdriverConfigParams;
1213
let browser: string;
@@ -22,7 +23,11 @@ describe('startDriver', () => {
2223
});
2324

2425
afterEach(async () => {
25-
await driver.quit();
26+
// try catch required due to `chrome.options` being mocked with sinon
27+
// and not properly creating a driver
28+
try {
29+
await driver.quit();
30+
} catch (error) {}
2631
});
2732

2833
it('creates a driver', async () => {
@@ -101,4 +106,18 @@ describe('startDriver', () => {
101106
assert.isObject(timeoutValue);
102107
assert.deepEqual(timeoutValue.script, 10000000);
103108
});
109+
110+
it('invokes `options.headless()` on versions of selenium-webdriver < 4.17.0', async () => {
111+
const stub = sinon.stub(chrome, 'Options').returns({
112+
headless: () => {}
113+
});
114+
115+
// try catch required due to `chrome.options` being mocked with sinon
116+
// and not properly creating a driver
117+
try {
118+
driver = await startDriver(config);
119+
} catch (error) {}
120+
assert.isTrue(stub.calledOnce);
121+
stub.restore();
122+
});
104123
});

0 commit comments

Comments
 (0)