File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/tools/percy-snapshot-utils Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export async function updateFileAndStep(
7
7
instruction : string ,
8
8
) {
9
9
content . length = 0 ;
10
+ const nextIndex = idx + 1 ;
10
11
11
12
content . push ( {
12
13
type : "text" ,
@@ -17,12 +18,16 @@ export async function updateFileAndStep(
17
18
type : "text" ,
18
19
text : `Step 1 : You need to add percy snapshot commands in some key test cases in the file ${ file } use the following instructions: \n${ instruction } ` ,
19
20
} ) ;
21
+
22
+ content . push ( {
23
+ type : "text" ,
24
+ text : `Step 2 : Confirm that Percy snapshot commands have been added at all key points of visual change in the file ${ file } .` ,
25
+ } ) ;
20
26
21
- const nextIndex = idx + 1 ;
22
27
if ( nextIndex < total ) {
23
28
content . push ( {
24
29
type : "text" ,
25
- text : `Step 2 : Call the tool updateTestFileWithInstructions with index as ${ nextIndex } out of ${ total } ` ,
30
+ text : `Step 3 : Call the tool updateTestFileWithInstructions with index as ${ nextIndex } out of ${ total } ` ,
26
31
} ) ;
27
32
}
28
33
return content ;
You can’t perform that action at this time.
0 commit comments