@brightspace-ui/testing 0.34.0 → 0.34.2
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 +3 -6
- package/package.json +1 -1
- package/src/server/cli/test-runner.js +1 -1
- package/src/server/wtr-config.js +2 -0
package/README.md
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
Testing utilities which are specifically designed and configured for Brightspace UI components and applications.
|
|
6
6
|
|
|
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`.
|
|
9
|
+
|
|
7
10
|
Install from NPM:
|
|
8
11
|
|
|
9
12
|
```shell
|
|
@@ -553,12 +556,6 @@ The report supports filtering by status and browser, and allows for iteration th
|
|
|
553
556
|
|
|
554
557
|
To help surface instances where a browser version change may be responsible for vdiff failures in the report, a `.vdiff.json` tracking file will be committed to the root of the repository.
|
|
555
558
|
|
|
556
|
-
### Migrating
|
|
557
|
-
|
|
558
|
-
TODO:
|
|
559
|
-
- Migration commands
|
|
560
|
-
- Migration Guide
|
|
561
|
-
|
|
562
559
|
## Developing and Contributing
|
|
563
560
|
|
|
564
561
|
After cloning the repo, run `npm install` to install its dependencies.
|
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": "0.34.
|
|
5
|
+
"version": "0.34.2",
|
|
6
6
|
"repository": "https://github.com/BrightspaceUI/testing.git",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"lint": "eslint . --ext .js",
|
|
@@ -202,7 +202,7 @@ async function getTestRunnerOptions(argv = []) {
|
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
function installDeps() {
|
|
205
|
-
execSync('npx playwright install-deps', { stdio: 'pipe' });
|
|
205
|
+
execSync('npx playwright install --with-deps', { stdio: 'pipe' });
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
export const runner = {
|
package/src/server/wtr-config.js
CHANGED
|
@@ -187,6 +187,8 @@ export class WTRConfig {
|
|
|
187
187
|
files: this.#pattern
|
|
188
188
|
});
|
|
189
189
|
} else if (group === 'vdiff') {
|
|
190
|
+
config.testsFinishTimeout = 5 * 60 * 1000;
|
|
191
|
+
|
|
190
192
|
config.reporters ??= [ defaultReporter() ];
|
|
191
193
|
config.reporters.push(visualDiffReporter({ updateGoldens: golden }));
|
|
192
194
|
|