@brightspace-ui/testing 1.21.1 → 1.22.0

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.21.1",
5
+ "version": "1.22.0",
6
6
  "repository": "https://github.com/BrightspaceUI/testing.git",
7
7
  "scripts": {
8
8
  "lint": "npm run lint:eslint && npm run lint:style",
@@ -19,6 +19,7 @@ const ALLOWED_BROWSERS = Object.keys(BROWSER_MAP);
19
19
  const DEFAULT_BROWSERS = [...new Set(Object.values(BROWSER_MAP))];
20
20
  const TIMEZONE = '{"name":"Canada - Toronto","identifier":"America/Toronto"}';
21
21
  const FONT_ASSETS = 'https://s.brightspace.com/lib/fonts/0.6.1/assets/';
22
+ const TEST_PAGE = '<script>window.isD2LTestPage = true;</script>';
22
23
  const SUPPRESS_RESIZE_OBSERVER_ERRORS = `
23
24
  <script>
24
25
  window.addEventListener('error', (err) => {
@@ -53,6 +54,7 @@ export class WTRConfig {
53
54
  `<!DOCTYPE html>
54
55
  <html lang="en" data-timezone='${TIMEZONE}'>
55
56
  <body>
57
+ ${TEST_PAGE}
56
58
  ${SUPPRESS_RESIZE_OBSERVER_ERRORS}
57
59
  <script type="module" src="${testFramework}"></script>
58
60
  </body>
@@ -124,6 +126,7 @@ export class WTRConfig {
124
126
  </style>
125
127
  </head>
126
128
  <body>
129
+ ${TEST_PAGE}
127
130
  ${SUPPRESS_RESIZE_OBSERVER_ERRORS}
128
131
  <script type="module" src="${testFramework}"></script>
129
132
  </body>