Skip to content

Commit b24b979

Browse files
authored
chore: RC v4.9.1 (#1057)
## [4.9.1](v4.9.0...v4.9.1) (2024-05-10) ### Bug Fixes * Update axe-core to v4.9.1 ([#1055](#1055)) ([8644fbd](8644fbd))
2 parents 97a01bd + d3e60f5 commit b24b979

File tree

25 files changed

+154
-50
lines changed

25 files changed

+154
-50
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
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.1](https://github.com/dequelabs/axe-core-npm/compare/v4.9.0...v4.9.1) (2024-05-10)
7+
8+
9+
### Bug Fixes
10+
11+
* 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))
12+
13+
14+
15+
16+
617
# [4.9.0](https://github.com/dequelabs/axe-core-npm/compare/v4.8.5...v4.9.0) (2024-04-01)
718

819

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: 29 additions & 28 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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
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.1](https://github.com/dequelabs/axe-core-npm/compare/v4.9.0...v4.9.1) (2024-05-10)
7+
8+
**Note:** Version bump only for package @axe-core/cli
9+
10+
11+
12+
13+
614
# [4.9.0](https://github.com/dequelabs/axe-core-npm/compare/v4.8.5...v4.9.0) (2024-04-01)
715

816

packages/cli/package.json

Lines changed: 4 additions & 2 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,7 +47,7 @@
4747
"testing"
4848
],
4949
"dependencies": {
50-
"@axe-core/webdriverjs": "^4.9.0",
50+
"@axe-core/webdriverjs": "^4.9.1",
5151
"axe-core": "~4.9.0",
5252
"chromedriver": "latest",
5353
"colors": "^1.4.0",
@@ -59,11 +59,13 @@
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
});

packages/playwright/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
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.1](https://github.com/dequelabs/axe-core-npm/compare/v4.9.0...v4.9.1) (2024-05-10)
7+
8+
**Note:** Version bump only for package @axe-core/playwright
9+
10+
11+
12+
13+
614
# [4.9.0](https://github.com/dequelabs/axe-core-npm/compare/v4.8.5...v4.9.0) (2024-04-01)
715

816

packages/playwright/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@axe-core/playwright",
3-
"version": "4.9.0",
3+
"version": "4.9.1",
44
"description": "Provides a method to inject and analyze web pages using axe",
55
"contributors": [
66
{

0 commit comments

Comments
 (0)