testronaut 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +9 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -42,7 +42,7 @@ Create a file in your missions/ directory, e.g. missions/login.mission.js:
42
42
  import { runMissions } from 'testronaut';
43
43
 
44
44
  export const loginMission = `
45
- Click on the login button.
45
+ Visit ${process.env.URL}.
46
46
  Fill in the username field with ${process.env.USERNAME} and password field with ${process.env.PASSWORD}.
47
47
  Submit the form.
48
48
  Wait for the dashboard to appear.
@@ -56,7 +56,14 @@ export async function executeMission() {
56
56
  }
57
57
  ```
58
58
 
59
- Pass in credentials using an .env file
59
+ Pass in credentials using an .env file. The .env file should also include your Open AI API key (permissions to the completions endpoint required):
60
+
61
+ ```
62
+ OPENAI_API_KEY=sk-proj-############
63
+ URL=https://example.com/login
64
+ USERNAME=example@example.com
65
+ PASSWORD=********
66
+ ```
60
67
 
61
68
  You can chain multiple phases:
62
69
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testronaut",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "main": "./runner/testronaut.js",
5
5
  "bin": {
6
6
  "testronaut": "./bin/cli.js"