Skip to content

Commit

Permalink
Merge pull request #13 from elie222/patch-1
Browse files Browse the repository at this point in the history
Fix README.md typo
  • Loading branch information
lucgagan authored Nov 15, 2023
2 parents ef5f855 + 1a9fab5 commit 704bd56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ Run Playwright tests using AI.
1. Install `auto-playwright` dependency:

```bash
$ npm install auto-playwright -D
npm install auto-playwright -D
```

2. This package relies on talking with OpenAI (https://openai.com/). You must export the API token:
2. This package relies on talking with OpenAI (https://openai.com/). You must export the API token as an enviroment variable or add it to your `.env` file:

```bash
$ export export OPENAI_API_KEY='sk-..."
export OPENAI_API_KEY='sk-..."
```
3. Import and use the `auto` function:
Expand All @@ -35,7 +35,7 @@ test("auto Playwright example", async ({ page }) => {
// `auto` can assert the state of the website
// In this case, the result is a boolean outcome
const searchInputHasHeaderText = await auto(`Is the contents of the search box equal to "${headerText}"?` { page, test });
const searchInputHasHeaderText = await auto(`Is the contents of the search box equal to "${headerText}"?`, { page, test });
expect(searchInputHasHeaderText).toBe(true);
});
Expand Down

0 comments on commit 704bd56

Please sign in to comment.