Skip to content

Commit eb29115

Browse files
docs fix
1 parent 254b386 commit eb29115

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/usage/bdd-mode.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ Note, you only need one step definition for the `When` step, as it will handle a
7777

7878
```typescript
7979
import { 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
110110
import { 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

Comments
 (0)