Skip to content

Commit c8e7919

Browse files
chore: update dependencies (#116)
* chore: update dependencies * feat: **BREAKING** drop node 18, support node 22 * refactor: remove specific version fro playwright, puppeteer, and cypress examples
1 parent 59fe873 commit c8e7919

22 files changed

+898
-680
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ on:
77
branches: [main]
88

99
jobs:
10-
test-node-18:
10+
test-node-20:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
1414
- uses: actions/setup-node@v4
1515
with:
16-
node-version: 18
16+
node-version: 20
1717
- run: yarn install --frozen-lockfile
1818
- run: yarn ci
1919

20-
test-node-20:
20+
test-node-22:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- uses: actions/checkout@v4
2424
- uses: actions/setup-node@v4
2525
with:
26-
node-version: 20
26+
node-version: 22
2727
- run: yarn install --frozen-lockfile
2828
- run: yarn ci
2929

@@ -33,7 +33,7 @@ jobs:
3333
- uses: actions/checkout@v4
3434
- uses: actions/setup-node@v4
3535
with:
36-
node-version: 20
36+
node-version: 22
3737
- run: yarn install --frozen-lockfile
3838
- run: yarn install --frozen-lockfile
3939
working-directory: ./examples/commonjs
@@ -46,7 +46,7 @@ jobs:
4646
- uses: actions/checkout@v4
4747
- uses: actions/setup-node@v4
4848
with:
49-
node-version: 20
49+
node-version: 22
5050
- run: yarn install --frozen-lockfile
5151
- run: yarn install --frozen-lockfile
5252
working-directory: ./examples/typescript-bundler
@@ -59,7 +59,7 @@ jobs:
5959
- uses: actions/checkout@v4
6060
- uses: actions/setup-node@v4
6161
with:
62-
node-version: 20
62+
node-version: 22
6363
- run: yarn install --frozen-lockfile
6464
- run: yarn install --frozen-lockfile
6565
working-directory: ./examples/typescript-legacy
@@ -72,7 +72,7 @@ jobs:
7272
- uses: actions/checkout@v4
7373
- uses: actions/setup-node@v4
7474
with:
75-
node-version: 20
75+
node-version: 22
7676
- run: yarn install --frozen-lockfile
7777
- run: yarn install --frozen-lockfile
7878
working-directory: ./examples/typescript-nodenext
@@ -85,7 +85,7 @@ jobs:
8585
- uses: actions/checkout@v4
8686
- uses: actions/setup-node@v4
8787
with:
88-
node-version: 20
88+
node-version: 22
8989
- run: yarn install --frozen-lockfile
9090
- run: yarn install --frozen-lockfile
9191
working-directory: ./examples/vue
@@ -98,7 +98,7 @@ jobs:
9898
- uses: actions/checkout@v4
9999
- uses: actions/setup-node@v4
100100
with:
101-
node-version: 20
101+
node-version: 22
102102
- run: yarn install --frozen-lockfile
103103
- run: yarn install --frozen-lockfile
104104
working-directory: ./examples/web-test-runner
@@ -113,7 +113,7 @@ jobs:
113113
submodules: recursive
114114
- uses: actions/setup-node@v4
115115
with:
116-
node-version: 20
116+
node-version: 22
117117
- uses: actions/setup-python@v5
118118
with:
119119
# REF: https://github.com/web-platform-tests/wpt/issues/44427

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
22

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Extracted requirements from these specifications can be found in [docs/requireme
4646
Internal modules responsible for constructing the Virtual Screen Reader accessibility tree are being tested against [Web Platform Tests](https://github.com/web-platform-tests/wpt) for the following specs:
4747

4848
- [accname](https://github.com/web-platform-tests/wpt/tree/master/accname)
49+
- [core-aam](https://github.com/web-platform-tests/wpt/tree/master/core-aam)
4950
- [dpub-aam](https://github.com/web-platform-tests/wpt/tree/master/dpub-aam)
5051
- [graphics-aria](https://github.com/web-platform-tests/wpt/tree/master/graphics-aria)
5152
- [html-aam](https://github.com/web-platform-tests/wpt/tree/master/html-aam)
@@ -56,7 +57,7 @@ The current status of the WPT coverage is:
5657

5758
| Passing | Failing | Skipped |
5859
| :-----: | :-----: | :-----: |
59-
| 404 | 119 | 338 |
60+
| 404 | 114 | 338 |
6061

6162
The included tests, skipped tests, and expected failures can be found in the [WPT configuration file](./test/wpt-jsdom/to-run.yaml) with reasons as to skips and expected failures.
6263

@@ -131,23 +132,19 @@ describe("Screen Reader Tests", () => {
131132
"navigation",
132133
"Nav Text",
133134
"end of navigation",
134-
"region",
135135
"heading, Section Heading, level 1",
136136
"paragraph",
137137
"Section Text",
138138
"end of paragraph",
139139
"article",
140-
"banner",
141140
"heading, Article Header Heading, level 1",
142141
"paragraph",
143142
"Article Header Text",
144143
"end of paragraph",
145-
"end of banner",
146144
"paragraph",
147145
"Article Text",
148146
"end of paragraph",
149147
"end of article",
150-
"end of region",
151148
"contentinfo",
152149
"Footer",
153150
"end of contentinfo",

examples/cypress/cypress/e2e/virtual-screen-reader.cy.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
function injectVirtualScreenReader(window) {
44
window.document.write(
5-
`<script type="module">import { virtual } from "https://unpkg.com/@guidepup/virtual-screen-reader"; window.virtual = virtual;</script>`
5+
`<script type="module">import { virtual } from "https://unpkg.com/@guidepup/virtual-screen-reader/lib/esm/index.browser.js"; window.virtual = virtual;</script>`
66
);
77
}
88

@@ -50,8 +50,12 @@ describe("Virtual Screen Reader", () => {
5050
getSpokenPhraseLog(cy).should("deep.equal", [
5151
"document",
5252
"region, Skip to main content",
53+
"link, Skip to main content",
54+
"end of region, Skip to main content",
5355
"navigation, Main",
5456
"link, Guidepup",
57+
"Guidepup",
58+
"end of link, Guidepup",
5559
"link, Docs",
5660
"link, API",
5761
"link, GitHub",
@@ -66,6 +70,11 @@ describe("Virtual Screen Reader", () => {
6670
"end of region",
6771
"region",
6872
"heading, Reliable automation for your screen reader a11y workflows through JavaScript, level 2",
73+
"Reliable",
74+
"automation for your",
75+
"screen reader a11y workflows",
76+
"through JavaScript",
77+
"end of heading, Reliable automation for your screen reader a11y workflows through JavaScript, level 2",
6978
"paragraph",
7079
"With Guidepup you can automate your screen reader test workflows the same you as would for mouse or keyboard based scenarios, no sweat!",
7180
"end of paragraph",

examples/playwright/tests/virtual-screen-reader.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { expect, Page, test } from "@playwright/test";
22

33
async function injectVirtualScreenReader({ page }: { page: Page }) {
44
await page.addScriptTag({
5-
url: "https://unpkg.com/@guidepup/virtual-screen-reader",
5+
url: "https://unpkg.com/@guidepup/virtual-screen-reader/lib/esm/index.browser.js",
66
type: "module",
77
});
88

99
await page.addScriptTag({
10-
content: `import { virtual } from "https://unpkg.com/@guidepup/virtual-screen-reader"; window.virtual = virtual;`,
10+
content: `import { virtual } from "https://unpkg.com/@guidepup/virtual-screen-reader/lib/esm/index.browser.js"; window.virtual = virtual;`,
1111
type: "module",
1212
});
1313
}

examples/playwright/tests/virtual-screen-reader.spec.ts-snapshots/should-match-expected-screen-reader-output-for-https-guidepup-dev-1-chromium-darwin.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
[
22
"document",
33
"region, Skip to main content",
4+
"link, Skip to main content",
5+
"end of region, Skip to main content",
46
"navigation, Main",
57
"link, Guidepup",
8+
"Guidepup",
9+
"end of link, Guidepup",
610
"link, Docs",
711
"link, API",
812
"link, GitHub",
@@ -17,6 +21,11 @@
1721
"end of region",
1822
"region",
1923
"heading, Reliable automation for your screen reader a11y workflows through JavaScript, level 2",
24+
"Reliable",
25+
"automation for your",
26+
"screen reader a11y workflows",
27+
"through JavaScript",
28+
"end of heading, Reliable automation for your screen reader a11y workflows through JavaScript, level 2",
2029
"paragraph",
2130
"With Guidepup you can automate your screen reader test workflows the same you as would for mouse or keyboard based scenarios, no sweat!",
2231
"end of paragraph",

examples/playwright/tests/virtual-screen-reader.spec.ts-snapshots/should-match-expected-screen-reader-output-for-https-guidepup-dev-1-firefox-darwin.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
[
22
"document",
33
"region, Skip to main content",
4+
"link, Skip to main content",
5+
"end of region, Skip to main content",
46
"navigation, Main",
57
"link, Guidepup",
8+
"Guidepup",
9+
"end of link, Guidepup",
610
"link, Docs",
711
"link, API",
812
"link, GitHub",
@@ -17,6 +21,11 @@
1721
"end of region",
1822
"region",
1923
"heading, Reliable automation for your screen reader a11y workflows through JavaScript, level 2",
24+
"Reliable",
25+
"automation for your",
26+
"screen reader a11y workflows",
27+
"through JavaScript",
28+
"end of heading, Reliable automation for your screen reader a11y workflows through JavaScript, level 2",
2029
"paragraph",
2130
"With Guidepup you can automate your screen reader test workflows the same you as would for mouse or keyboard based scenarios, no sweat!",
2231
"end of paragraph",

examples/playwright/tests/virtual-screen-reader.spec.ts-snapshots/should-match-expected-screen-reader-output-for-https-guidepup-dev-1-webkit-darwin.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
[
22
"document",
33
"region, Skip to main content",
4+
"link, Skip to main content",
5+
"end of region, Skip to main content",
46
"navigation, Main",
57
"link, Guidepup",
8+
"Guidepup",
9+
"end of link, Guidepup",
610
"link, Docs",
711
"link, API",
812
"link, GitHub",
@@ -17,6 +21,11 @@
1721
"end of region",
1822
"region",
1923
"heading, Reliable automation for your screen reader a11y workflows through JavaScript, level 2",
24+
"Reliable",
25+
"automation for your",
26+
"screen reader a11y workflows",
27+
"through JavaScript",
28+
"end of heading, Reliable automation for your screen reader a11y workflows through JavaScript, level 2",
2029
"paragraph",
2130
"With Guidepup you can automate your screen reader test workflows the same you as would for mouse or keyboard based scenarios, no sweat!",
2231
"end of paragraph",

examples/puppeteer/tests/__snapshots__/virtual-screen-reader.test.js.snap

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ exports[`Virtual Screen Reader should match expected screen reader output for ht
44
[
55
"document",
66
"region, Skip to main content",
7+
"link, Skip to main content",
8+
"end of region, Skip to main content",
79
"navigation, Main",
810
"button, Toggle navigation bar, not expanded",
911
"link, Guidepup",
12+
"Guidepup",
13+
"end of link, Guidepup",
1014
"end of navigation, Main",
1115
"main",
1216
"region",
@@ -18,6 +22,11 @@ exports[`Virtual Screen Reader should match expected screen reader output for ht
1822
"end of region",
1923
"region",
2024
"heading, Reliable automation for your screen reader a11y workflows through JavaScript, level 2",
25+
"Reliable",
26+
"automation for your",
27+
"screen reader a11y workflows",
28+
"through JavaScript",
29+
"end of heading, Reliable automation for your screen reader a11y workflows through JavaScript, level 2",
2130
"paragraph",
2231
"With Guidepup you can automate your screen reader test workflows the same you as would for mouse or keyboard based scenarios, no sweat!",
2332
"end of paragraph",

examples/puppeteer/tests/virtual-screen-reader.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
async function injectVirtualScreenReader() {
22
await page.addScriptTag({
3-
url: "https://unpkg.com/@guidepup/virtual-screen-reader",
3+
url: "https://unpkg.com/@guidepup/virtual-screen-reader/lib/esm/index.browser.js",
44
type: "module",
55
});
66

77
await page.addScriptTag({
8-
content: `import { virtual } from "https://unpkg.com/@guidepup/virtual-screen-reader"; window.virtual = virtual;`,
8+
content: `import { virtual } from "https://unpkg.com/@guidepup/virtual-screen-reader/lib/esm/index.browser.js"; window.virtual = virtual;`,
99
type: "module",
1010
});
1111
}

0 commit comments

Comments
 (0)