@brightspace-ui/testing 1.31.2 → 1.31.4

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 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.2",
5
+ "version": "1.31.4",
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": "^5",
27
+ "chai": "^6",
28
28
  "eslint": "^9",
29
29
  "eslint-config-brightspace": "^2.0.0",
30
30
  "mocha": "^11",
@@ -64,7 +64,7 @@ export const RESULT_STYLE = css`
64
64
  position: absolute;
65
65
  top: 0;
66
66
  }
67
- .result-overlay img + img {
67
+ .result-overlay img:active {
68
68
  filter:
69
69
  drop-shadow(0 0 0.5px red)
70
70
  drop-shadow(0 0 0.5px red)
@@ -75,12 +75,6 @@ export const RESULT_STYLE = css`
75
75
  drop-shadow(0 0 0.5px red)
76
76
  drop-shadow(0 0 0.5px red)
77
77
  drop-shadow(0 0 0.5px red);
78
- inset: 0;
79
- opacity: 0.003;
80
- position: absolute;
81
- }
82
- .result-overlay img + img:active {
83
- opacity: 1;
84
78
  }
85
79
  .result-part-info {
86
80
  align-items: center;
@@ -190,7 +184,6 @@ function renderResult(resultData, options) {
190
184
  html`
191
185
  <div class="result-overlay">
192
186
  <img src="../${resultData.info.diff}" loading="lazy" alt="">
193
- <img src="../${resultData.info.diff}" loading="lazy" alt="">
194
187
  </div>` : nothing;
195
188
 
196
189
  const goldenPart = !goldenExists ?
@@ -225,9 +225,8 @@ export class WTRConfig {
225
225
  return [...new Set(browsers)].map((b) => playwrightLauncher({
226
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)
227
227
  product: b,
228
- createBrowserContext: ({ browser }) => browser.newContext({ deviceScaleFactor, reducedMotion: 'reduce' }),
228
+ createBrowserContext: ({ browser }) => browser.newContext({ deviceScaleFactor, reducedMotion: 'reduce', locale: 'en-us' }),
229
229
  launchOptions: {
230
- env: { ...env, LANG: 'en_US.UTF-8' },
231
230
  headless: !this.#cliArgs.open,
232
231
  devtools: false,
233
232
  slowMo: this.#cliArgs.slowmo || 0,