Skip to content

Commit f6d9002

Browse files
committed
Publish docs version 20.x
1 parent 4e6798e commit f6d9002

File tree

1 file changed

+3
-4
lines changed
  • website/versioned_docs/version-20.x/api

1 file changed

+3
-4
lines changed

website/versioned_docs/version-20.x/api/pilot.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,17 @@ For a more detailed guide on integrating Wix Pilot in your tests, refer to the \
2727

2828
## Methods
2929

30-
- [`pilot.init()`](#pilotinitprompthandler-detox)
30+
- [`pilot.init()`](#pilotinitprompthandler)
3131
- [`pilot.perform()`](#pilotperformsteps)
3232
- [`pilot.autopilot()`](#pilotautopilotgoal)
3333

34-
## `pilot.init(promptHandler, detox)`
34+
## `pilot.init(promptHandler)`
3535

3636
Initializes Pilot with the given prompt handler. Must be called before any other Pilot methods.
3737

3838
**Parameters:**
3939

4040
- `promptHandler` (PromptHandler): An object implementing the [`PromptHandler`](#prompthandler-interface) interface.
41-
- `detox` (DetoxInstance): The Detox instance to integrate with Wix Pilot.
4241

4342
**Example:**
4443

@@ -48,7 +47,7 @@ const OpenAIPromptHandler = require('./OpenAIPromptHandler');
4847

4948
beforeAll(() => {
5049
const promptHandler = new OpenAIPromptHandler('YOUR_OPENAI_API_KEY');
51-
pilot.init(promptHandler, detox);
50+
pilot.init(promptHandler);
5251
});
5352
```
5453

0 commit comments

Comments
 (0)