@@ -77,10 +77,10 @@ Note, you only need one step definition for the `When` step, as it will handle a
7777
7878``` typescript
7979import { auto } from " @auto-browse/auto-browse" ;
80- import { Given , When , Then } from " ./fixtures" ;
80+ import { Given , When as aistep , Then } from " ./fixtures" ;
8181
8282// Generic step that handles any natural language action
83- When (/ ^ (. * )$ / , async ({ page }, action : string ) => {
83+ aistep (/ ^ (. * )$ / , async ({ page }, action : string ) => {
8484 await auto (action , { page });
8585});
8686```
@@ -108,10 +108,10 @@ Feature: User Login
108108
109109``` typescript
110110import { auto } from " @auto-browse/auto-browse" ;
111- import { Given , When , Then } from " ./fixtures" ;
111+ import { Given , When aistep , Then } from " ./fixtures" ;
112112
113113// Generic step that handles any natural language action
114- When (/ ^ (. * )$ / , async ({ page }, action : string ) => {
114+ aistep (/ ^ (. * )$ / , async ({ page }, action : string ) => {
115115 await auto (action , { page });
116116});
117117```
0 commit comments