@brightspace-ui/testing 1.3.0 → 1.4.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 +1 -1
- package/src/server/wtr-config.js +3 -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.
|
|
5
|
+
"version": "1.4.0",
|
|
6
6
|
"repository": "https://github.com/BrightspaceUI/testing.git",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"lint": "eslint . --ext .js",
|
package/src/server/wtr-config.js
CHANGED
|
@@ -14,6 +14,7 @@ const BROWSER_MAP = {
|
|
|
14
14
|
safari: 'webkit',
|
|
15
15
|
webkit: 'webkit'
|
|
16
16
|
};
|
|
17
|
+
const TIMEZONE = '{"name":"Canada - Toronto","identifier":"America/Toronto"}';
|
|
17
18
|
const SUPPRESS_RESIZE_OBSERVER_ERRORS = `
|
|
18
19
|
<script>
|
|
19
20
|
window.addEventListener('error', (err) => {
|
|
@@ -43,7 +44,7 @@ export class WTRConfig {
|
|
|
43
44
|
nodeResolve: true,
|
|
44
45
|
testRunnerHtml: testFramework =>
|
|
45
46
|
`<!DOCTYPE html>
|
|
46
|
-
<html lang="en">
|
|
47
|
+
<html lang="en" data-timezone='${TIMEZONE}'>
|
|
47
48
|
<body>
|
|
48
49
|
${SUPPRESS_RESIZE_OBSERVER_ERRORS}
|
|
49
50
|
<script type="module" src="${testFramework}"></script>
|
|
@@ -69,7 +70,7 @@ export class WTRConfig {
|
|
|
69
70
|
browsers: ['chrome'],
|
|
70
71
|
testRunnerHtml: testFramework =>
|
|
71
72
|
`<!DOCTYPE html>
|
|
72
|
-
<html lang="en">
|
|
73
|
+
<html lang="en" data-timezone='${TIMEZONE}'>
|
|
73
74
|
<head>
|
|
74
75
|
<link rel="preload" href="https://s.brightspace.com/lib/fonts/0.5.0/assets/Lato-400.woff2" as="font" type="font/woff2" crossorigin>
|
|
75
76
|
<link rel="preload" href="https://s.brightspace.com/lib/fonts/0.5.0/assets/Lato-700.woff2" as="font" type="font/woff2" crossorigin>
|