Skip to content

Commit 09ebcb8

Browse files
authored
Tests: disable browser renderer accessibility (#4029)
1 parent 31c147b commit 09ebcb8

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AGENTS.md
22

3-
## Quick ref
3+
## Commands
44

55
```shell
66
npm install # setup (requires Node.js ≥ 22 for `node --run`)

tsconfig.js.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extends": "./tsconfig.base.json",
33
"compilerOptions": {
44
"allowJs": true,
5-
"checkJs": true,
5+
"checkJs": false,
66
"lib": ["ESNext"],
77
"module": "NodeNext",
88
"moduleResolution": "NodeNext"

vite.config.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,24 @@ export default defineConfig(
129129
provider: playwright({
130130
...playwrightOptions,
131131
launchOptions: {
132-
channel: 'chromium'
132+
channel: 'chromium',
133+
args: [
134+
'--disable-renderer-accessibility',
135+
'--disable-platform-accessibility-integration'
136+
]
133137
}
134138
})
135139
},
136140
{
137141
browser: 'firefox',
138-
provider: playwright(playwrightOptions),
142+
provider: playwright({
143+
...playwrightOptions,
144+
launchOptions: {
145+
firefoxUserPrefs: {
146+
'accessibility.force_disabled': 1
147+
}
148+
}
149+
}),
139150
// TODO: remove when FF tests are stable
140151
fileParallelism: false
141152
}

0 commit comments

Comments
 (0)