@brightspace-ui/testing 1.5.1 → 1.6.1

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/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  Testing utilities which are specifically designed and configured for Brightspace UI components and applications.
6
6
 
7
7
  > **Migrating from `@open-wc/testing` and/or `@brightspace-ui/visual-diff`?**
8
- > Refer to the [Migration Guide](./docs/migration-guide.md) for help migrating a repo to `@brightspace-ui/testing`.
8
+ > Refer to the [Migration Guide](docs/migration-guide.md) for help migrating a repo to `@brightspace-ui/testing`.
9
9
 
10
10
  Install from NPM:
11
11
 
@@ -517,7 +517,7 @@ const elem = await fixture(html`
517
517
  <button style="position: relative;">
518
518
  hello
519
519
  <span class="vdiff-include" style="left: 0; position: absolute; top: 100%;">there</span>
520
- </span>
520
+ </button>
521
521
  `);
522
522
  await expect(elem).to.be.golden();
523
523
  ```
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.5.1",
5
+ "version": "1.6.1",
6
6
  "repository": "https://github.com/BrightspaceUI/testing.git",
7
7
  "scripts": {
8
8
  "lint": "eslint . --ext .js",
@@ -75,6 +75,15 @@ export class WTRConfig {
75
75
  <link rel="preload" href="https://s.brightspace.com/lib/fonts/0.5.0/assets/Lato-400.woff2" as="font" type="font/woff2" crossorigin>
76
76
  <link rel="preload" href="https://s.brightspace.com/lib/fonts/0.5.0/assets/Lato-700.woff2" as="font" type="font/woff2" crossorigin>
77
77
  <style>
78
+
79
+ * {
80
+ --d2l-document-direction: ltr;
81
+ }
82
+
83
+ html[dir="rtl"] * {
84
+ --d2l-document-direction: rtl;
85
+ }
86
+
78
87
  @font-face {
79
88
  font-family: 'Lato';
80
89
  font-style: normal;
@@ -231,6 +240,7 @@ export class WTRConfig {
231
240
  product: b,
232
241
  createBrowserContext: ({ browser }) => browser.newContext({ deviceScaleFactor: 2, reducedMotion: 'reduce' }),
233
242
  launchOptions: {
243
+ args: b === 'chromium' ? ['--no-sandbox', '--disable-setuid-sandbox'] : undefined,
234
244
  headless: !this.#cliArgs.open,
235
245
  devtools: false,
236
246
  slowMo: this.#cliArgs.slowmo || 0