@brightspace-ui/testing 1.31.1 → 1.31.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/server/wtr-config.js +7 -2
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@brightspace-ui/testing",
|
|
3
3
|
"description": "Utilities for testing front-end components and applications",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "1.31.
|
|
5
|
+
"version": "1.31.3",
|
|
6
6
|
"repository": "https://github.com/BrightspaceUI/testing.git",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"lint": "npm run lint:eslint && npm run lint:style",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@brightspace-ui/stylelint-config": "^1",
|
|
27
|
-
"chai": "^
|
|
27
|
+
"chai": "^6",
|
|
28
28
|
"eslint": "^9",
|
|
29
29
|
"eslint-config-brightspace": "^2.0.0",
|
|
30
30
|
"mocha": "^11",
|
package/src/server/wtr-config.js
CHANGED
|
@@ -82,16 +82,22 @@ export class WTRConfig {
|
|
|
82
82
|
<style>
|
|
83
83
|
|
|
84
84
|
html {
|
|
85
|
+
--d2l-cursor-resize-inline-end: e-resize;
|
|
86
|
+
--d2l-cursor-resize-inline-start: w-resize;
|
|
85
87
|
--d2l-document-direction: ltr;
|
|
86
88
|
--d2l-inline-end: right;
|
|
87
89
|
--d2l-inline-start: left;
|
|
90
|
+
--d2l-length-factor: 1;
|
|
88
91
|
--d2l-mirror-transform: none;
|
|
89
92
|
}
|
|
90
93
|
|
|
91
94
|
html[dir="rtl"] * {
|
|
95
|
+
--d2l-cursor-resize-inline-end: w-resize;
|
|
96
|
+
--d2l-cursor-resize-inline-start: e-resize;
|
|
92
97
|
--d2l-document-direction: rtl;
|
|
93
98
|
--d2l-inline-end: left;
|
|
94
99
|
--d2l-inline-start: right;
|
|
100
|
+
--d2l-length-factor: -1;
|
|
95
101
|
--d2l-mirror-transform: scale(-1, 1);
|
|
96
102
|
}
|
|
97
103
|
|
|
@@ -219,9 +225,8 @@ export class WTRConfig {
|
|
|
219
225
|
return [...new Set(browsers)].map((b) => playwrightLauncher({
|
|
220
226
|
concurrency: b === BROWSER_MAP.firefox || this.#cliArgs.open ? 1 : undefined, // focus in Firefox unreliable if concurrency > 1 (https://github.com/modernweb-dev/web/issues/238)
|
|
221
227
|
product: b,
|
|
222
|
-
createBrowserContext: ({ browser }) => browser.newContext({ deviceScaleFactor, reducedMotion: 'reduce' }),
|
|
228
|
+
createBrowserContext: ({ browser }) => browser.newContext({ deviceScaleFactor, reducedMotion: 'reduce', locale: 'en-us' }),
|
|
223
229
|
launchOptions: {
|
|
224
|
-
env: { ...env, LANG: 'en_US.UTF-8' },
|
|
225
230
|
headless: !this.#cliArgs.open,
|
|
226
231
|
devtools: false,
|
|
227
232
|
slowMo: this.#cliArgs.slowmo || 0,
|