File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -194,21 +194,13 @@ Feature: Playwright Home Page
194194
195195``` typescript
196196import { auto } from " @auto-browse/auto-browse" ;
197- import { Given , When , Then } from " ./fixtures" ;
197+ import { Given , When as aistep , Then } from " ./fixtures" ;
198198
199199// Generic step that handles any natural language action
200- When (/ ^ (. * )$ / , async ({ page }, action : string ) => {
200+ aistep (/ ^ (. * )$ / , async ({ page }, action : string ) => {
201201 await auto (action , { page });
202202});
203203
204- // You can also create specific steps for better readability
205- Given (" navigate to {string}" , async ({ page }, url : string ) => {
206- await auto (` navigate to ${url } ` , { page });
207- });
208-
209- Then (" assert title {string}" , async ({ page }, title : string ) => {
210- await auto (` assert title is "${title }" ` , { page });
211- });
212204```
213205
214206#### Setup Requirements
You can’t perform that action at this time.
0 commit comments