Skip to content

Commit 9d368c5

Browse files
committed
Fix code rabbit catches
1 parent f9ddc55 commit 9d368c5

File tree

3 files changed

+35
-12
lines changed

3 files changed

+35
-12
lines changed

docs/get-started/tutorials/capture-screenshot.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,19 @@ This example fills in all of the fields on the Watson and Holmes Intake Form, th
99

1010
To run the test:
1111

12-
1. Download the TestExamples Zip file and expand doc-detective-tutorials on your local drive.
13-
2. In a terminal window, navigate to the doc-detective-tutorials directory.
14-
3. Start your local server, if it isn't currently running. For example, enter the command `live-server`.
15-
4. Enter the command `npx doc-detective@dev -i form-filler2.json
12+
1. Download the `TestExamples.zip` file and expand it on your local drive.
13+
2. In a terminal window, navigate to the `TestExamples` directory.
14+
3. Start your local server.
15+
16+
```shell
17+
live-server
18+
```
19+
20+
4. Enter the command
21+
22+
```shell
23+
npx doc-detective@dev -i form-filler2.json
24+
```
1625

1726
While the form is too large to fit on the computer screen, increasing the window and viewport settings allows you to capture the entire form in a single image.
1827

@@ -222,7 +231,7 @@ Use the screenshot action with an output path to capture the state of the form o
222231
"screenshot": "./output/form-filled-2-complete.png"
223232
},
224233
{
225-
"description:": "Pause long enough to see the changes.",
234+
"description": "Pause long enough to see the changes.",
226235
"wait": 10000
227236
}
228237
]

docs/get-started/tutorials/fill-fields.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,19 @@ A basic test is to fill in the fields of a form. This short script opens a sampl
99

1010
To run the test:
1111

12-
1. Download the TestExamples Zip file and expand it to your local drive.
13-
2. In a terminal window, navigate to the TestExamples directory.
12+
1. Download the `TestExamples.zip` file and expand it to your local drive.
13+
2. In a terminal window, navigate to the `TestExamples` directory.
14+
15+
```shell
16+
cd TestExamples
17+
```
18+
1419
3. Start your local server:
1520

16-
```
21+
```shell
1722
live-server
1823
```
24+
1925
4. Run the _form-filler1.json_ test spec with Doc Detective:
2026

2127
```
@@ -109,7 +115,7 @@ Pause 10 seconds, allowing you to see the results, then end the test. In real te
109115
110116
```json
111117
{
112-
"description:": "Pause long enough to show the changes.",
118+
"description": "Pause long enough to show the changes.",
113119
"wait": 10000
114120
}
115121
]

docs/get-started/tutorials/record-video.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,17 @@ This example fills in all of the fields on the Watson and Holmes Intake Form, wh
1010
To run the test:
1111

1212
1. Download the TestExamples Zip file and expand doc-detective-tutorials on your local drive.
13-
2. In a terminal window, navigate to the doc-detective-tutorials directory.
14-
3. Start your local server, if it isn't currently running. For example, enter the command `live-server`.
15-
4. Enter the command `npx doc-detective@dev -i form-filler3.json`.
13+
2. In a terminal window, navigate to the `TestExamples` directory.
14+
3. Start your local server.
15+
16+
```shell
17+
live-server
18+
```
19+
20+
4. Enter the command
21+
```shell
22+
npx doc-detective@dev -i form-filler3.json
23+
```
1624

1725
To record, you must run the test with _headless_ mode turned off. The display window of the browser constrains the view area of the screenshot and video functions.
1826

0 commit comments

Comments
 (0)