You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -237,13 +237,13 @@ Two tests on two different components are executed. Each test first sets a state
237
237
The above spec file can be saved in a folder and added to the command line with the following command:
238
238
239
239
```sh
240
-
npm run test.local.desktop.storybook.localhost -- --spec='tests/specs/storybook-interaction/*.ts'
240
+
pnpm run test.local.desktop.storybook.localhost -- --spec='tests/specs/storybook-interaction/*.ts'
241
241
```
242
242
243
243
The Storybook runner will first automatically scan your Storybook instance and then add your tests to the stories that need to be compared. If you don't want the components that you use for interaction testing to be compared twice, you can add a filter to remove the "default" stories from the scan by providing the [`--skipStories`](#--skipstories) filter. This would look like this:
244
244
245
245
```sh
246
-
npm run test.local.desktop.storybook.localhost -- --skipStories="/example-page.*/gm" --spec='tests/specs/storybook-interaction/*.ts'
246
+
pnpm run test.local.desktop.storybook.localhost -- --skipStories="/example-page.*/gm" --spec='tests/specs/storybook-interaction/*.ts'
247
247
```
248
248
249
249
### New Custom Command
@@ -493,7 +493,7 @@ devDependencies:
493
493
- eslint-plugin-wdio 9.0.8
494
494
- husky 9.1.6
495
495
- jsdom 25.0.1
496
-
- npm-run-all2 6.2.3
496
+
- pnpm-run-all2 6.2.3
497
497
- release-it 17.6.0
498
498
- rimraf 6.0.1
499
499
- saucelabs 8.0.0
@@ -516,7 +516,7 @@ Please join our [Discord](https://discord.webdriver.io) Server if you have any q
516
516
517
517
### Issues
518
518
519
-
If you have questions, bugs or feature requests, please file an issue. Before submitting an issue, please search the issue archive to help reduce duplicates, and read the [FAQ](../README.md#faq).
519
+
If you have questions, bugs or feature requests, please file an issue. Before submitting an issue, please search the issue archive to help reduce duplicates, and read the [FAQ](https://webdriver.io/docs/visual-testing/faq/).
520
520
521
521
If you can't find it there you can submit an issue where you can submit:
522
522
@@ -574,7 +574,7 @@ First, a local baseline needs to be created. This can be done with:
574
574
575
575
```sh
576
576
// With the webdriver protocol
577
-
$ npm run test.local.init
577
+
$ pnpm run test.local.init
578
578
````
579
579
580
580
This command will create a folder called `localBaseline` that will hold all the baseline images.
@@ -583,7 +583,7 @@ Then run:
583
583
584
584
```sh
585
585
// With the webdriver protocol
586
-
npm run test.local.desktop
586
+
pnpm run test.local.desktop
587
587
```
588
588
589
589
This will run all tests on a local machine on Chrome.
@@ -593,15 +593,15 @@ This will run all tests on a local machine on Chrome.
593
593
First, a local baseline needs to be created. This can be done with:
594
594
595
595
```sh
596
-
npm run test.local.desktop.storybook
596
+
pnpm run test.local.desktop.storybook
597
597
```
598
598
599
599
This will Storybook tests with Chrome in headless mode against a Demo Storybook repo located at https://govuk-react.github.io/govuk-react/.
600
600
601
601
To run the tests with more browsers you can run
602
602
603
603
```sh
604
-
npm run test.local.desktop.storybook -- --browsers=chrome,firefox,edge,safari
604
+
pnpm run test.local.desktop.storybook -- --browsers=chrome,firefox,edge,safari
605
605
```
606
606
607
607
> [!NOTE]
@@ -612,10 +612,10 @@ npm run test.local.desktop.storybook -- --browsers=chrome,firefox,edge,safari
612
612
The command below is used to test the build on GitHub Actions, it can only be used there and not for local development.
613
613
614
614
```
615
-
$ npm run test.saucelabs
615
+
$ pnpm run test.saucelabs
616
616
```
617
617
618
-
It will test against a lot of configurations that can be found [here](./tests/configs/wdio.saucelabs.conf.js).
618
+
It will test against a lot of configurations that can be found [here](./tests/configs/wdio.saucelabs.web.conf.ts).
619
619
All PRs are automatically checked against Sauce Labs.
0 commit comments