From 6637b068b73c53b715490b720055e18b8174a0dc Mon Sep 17 00:00:00 2001 From: Elie Steinbock <3090527+elie222@users.noreply.github.com> Date: Wed, 15 Nov 2023 18:53:19 +0200 Subject: [PATCH 1/2] Fix README.md typo --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3630d78..31db55b 100644 --- a/README.md +++ b/README.md @@ -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: From 1a9fab52cde888ef2405459d4bd40e0105e56b74 Mon Sep 17 00:00:00 2001 From: Elie Steinbock <3090527+elie222@users.noreply.github.com> Date: Wed, 15 Nov 2023 19:46:06 +0200 Subject: [PATCH 2/2] Fix missing , in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 31db55b..8c01242 100644 --- a/README.md +++ b/README.md @@ -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); });