testdriverai 6.0.28 → 6.1.0
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.
- package/.cursor/rules/trigger.basic.mdc +190 -0
- package/.github/instructions/trigger-basic.instructions.md +188 -0
- package/CLAUDE.md +188 -0
- package/agent/index.js +53 -25
- package/agent/interface.js +36 -0
- package/agent/lib/censorship.js +15 -10
- package/agent/lib/generator.js +2 -2
- package/agent/lib/sandbox.js +1 -1
- package/agent/lib/sdk.js +2 -1
- package/index.html +147 -0
- package/interfaces/cli/commands/generate.js +3 -0
- package/interfaces/cli/lib/base.js +1 -1
- package/interfaces/cli/utils/factory.js +16 -7
- package/package.json +3 -1
- package/static-analysis.datadog.yml +10 -0
- package/testdriver/examples/playwright/postrun.yaml +44 -0
- package/testdriver/examples/playwright/provision.yaml +43 -0
- package/testdriver/examples/web/lifecycle/postrun.yaml +7 -0
- package/testdriver/examples/web/lifecycle/{provision.yaml → prerun.yaml} +6 -0
- package/testdriver/generate/test-locked-out-user-login.yaml +37 -0
- package/testdriver/generate/test-standard-user-login.yaml +37 -0
- package/testdriver/generate/test-successful-logout.yaml +36 -0
- package/testdriver/lifecycle/postrun.yaml +2 -3
- package/testdriver/lifecycle/prerun.yaml +8 -2
- package/testdriver/lifecycle/provision.yaml +0 -12
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
version: 6.0.28
|
|
2
|
+
session: 68c7044dc65164d6ea5e5970
|
|
3
|
+
steps:
|
|
4
|
+
- prompt: Focus the browser window.
|
|
5
|
+
commands:
|
|
6
|
+
- command: focus-application
|
|
7
|
+
name: Google Chrome
|
|
8
|
+
- prompt: Enter "locked_out_user" as the username.
|
|
9
|
+
commands:
|
|
10
|
+
- command: hover-text
|
|
11
|
+
text: Username
|
|
12
|
+
description: Username label above the username input field on the login form
|
|
13
|
+
action: click
|
|
14
|
+
- command: type
|
|
15
|
+
text: locked_out_user
|
|
16
|
+
- prompt: Enter "secret_password" as the password.
|
|
17
|
+
commands:
|
|
18
|
+
- command: hover-text
|
|
19
|
+
text: Password
|
|
20
|
+
description: Password label above the password input field on the login form
|
|
21
|
+
action: click
|
|
22
|
+
- command: type
|
|
23
|
+
text: secret_password
|
|
24
|
+
- prompt: Click the "Sign in" button.
|
|
25
|
+
commands:
|
|
26
|
+
- command: hover-text
|
|
27
|
+
text: Sign in
|
|
28
|
+
description: black Sign in button below the password input field on the login form
|
|
29
|
+
action: click
|
|
30
|
+
- prompt: >-
|
|
31
|
+
Assert that an error message is displayed indicating the user is locked
|
|
32
|
+
out.
|
|
33
|
+
commands:
|
|
34
|
+
- command: assert
|
|
35
|
+
expect: >-
|
|
36
|
+
an error message is displayed with the text "This user has been locked
|
|
37
|
+
out"
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
version: 6.0.28
|
|
2
|
+
session: 68c70444c65164d6ea5e5967
|
|
3
|
+
steps:
|
|
4
|
+
- prompt: Focus the browser window.
|
|
5
|
+
commands:
|
|
6
|
+
- command: focus-application
|
|
7
|
+
name: Google Chrome
|
|
8
|
+
- prompt: Enter "standard_user" as the username.
|
|
9
|
+
commands:
|
|
10
|
+
- command: hover-text
|
|
11
|
+
text: Username
|
|
12
|
+
description: label above the username input field on the login form
|
|
13
|
+
action: click
|
|
14
|
+
- command: type
|
|
15
|
+
text: standard_user
|
|
16
|
+
- prompt: Enter "secret_password" as the password.
|
|
17
|
+
commands:
|
|
18
|
+
- command: hover-text
|
|
19
|
+
text: Password
|
|
20
|
+
description: label above the password input field on the login form
|
|
21
|
+
action: click
|
|
22
|
+
- command: type
|
|
23
|
+
text: secret_password
|
|
24
|
+
- prompt: Click the "Sign in" button.
|
|
25
|
+
commands:
|
|
26
|
+
- command: hover-text
|
|
27
|
+
text: Sign in
|
|
28
|
+
description: black button below the password field on the login form
|
|
29
|
+
action: click
|
|
30
|
+
- prompt: >-
|
|
31
|
+
Assert that login is successful and user is navigated to the main shop
|
|
32
|
+
page.
|
|
33
|
+
commands:
|
|
34
|
+
- command: assert
|
|
35
|
+
expect: >-
|
|
36
|
+
the main shop page with the heading "TestDriver.ai Sandbox" and
|
|
37
|
+
product listings is visible, confirming successful login
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
version: 6.0.28
|
|
2
|
+
session: 68c70449c65164d6ea5e596b
|
|
3
|
+
steps:
|
|
4
|
+
- prompt: Log in as "standard_user" with password "secret_password".
|
|
5
|
+
commands:
|
|
6
|
+
- command: focus-application
|
|
7
|
+
name: Google Chrome
|
|
8
|
+
- command: hover-text
|
|
9
|
+
text: Username
|
|
10
|
+
description: Username label above the first input field on the login form
|
|
11
|
+
action: click
|
|
12
|
+
- command: type
|
|
13
|
+
text: standard_user
|
|
14
|
+
- command: press-keys
|
|
15
|
+
keys:
|
|
16
|
+
- tab
|
|
17
|
+
- command: type
|
|
18
|
+
text: secret_password
|
|
19
|
+
- command: hover-text
|
|
20
|
+
text: Sign in
|
|
21
|
+
description: Black "Sign in" button below the password field
|
|
22
|
+
action: click
|
|
23
|
+
- prompt: Locate and click the "Logout" button or menu option after login.
|
|
24
|
+
commands:
|
|
25
|
+
- command: focus-application
|
|
26
|
+
name: Google Chrome
|
|
27
|
+
- command: hover-text
|
|
28
|
+
text: Logout
|
|
29
|
+
description: Logout button in the top right corner of the header next to Cart
|
|
30
|
+
action: click
|
|
31
|
+
- prompt: Assert that the user is redirected to the login page and is logged out.
|
|
32
|
+
commands:
|
|
33
|
+
- command: assert
|
|
34
|
+
expect: >-
|
|
35
|
+
The login page with 'TestDriver.ai Sandbox' is visible and the user is
|
|
36
|
+
logged out
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
version: 6.0.0
|
|
2
|
-
session: 67f00511acbd9ccac373edf7
|
|
3
2
|
steps:
|
|
4
|
-
- prompt:
|
|
3
|
+
- prompt: launch chrome
|
|
5
4
|
commands:
|
|
6
5
|
- command: exec
|
|
7
6
|
lang: pwsh
|
|
@@ -9,3 +8,10 @@ steps:
|
|
|
9
8
|
- command: exec
|
|
10
9
|
lang: pwsh
|
|
11
10
|
code: dashcam start
|
|
11
|
+
- command: exec
|
|
12
|
+
lang: pwsh
|
|
13
|
+
code: |
|
|
14
|
+
Start-Process "C:/Program Files/Google/Chrome/Application/chrome.exe" -ArgumentList "--start-maximized", "--guest", "https://testdriver-sandbox.vercel.app/login"
|
|
15
|
+
- command: wait-for-text
|
|
16
|
+
text: "TestDriver.ai Sandbox"
|
|
17
|
+
timeout: 60000
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
version: 5.1.1
|
|
2
|
-
session: 67f00511acbd9ccac373edf7
|
|
3
|
-
steps:
|
|
4
|
-
- prompt: launch chrome
|
|
5
|
-
commands:
|
|
6
|
-
- command: exec
|
|
7
|
-
lang: pwsh
|
|
8
|
-
code: |
|
|
9
|
-
Start-Process "C:\Program Files\Google\Chrome\Application\chrome.exe" -ArgumentList "--start-maximized --disable-infobars --disable-fre --no-default-browser-check --no-first-run --guest --load-extension=$(pwd)/node_modules/dashcam-chrome/build", "https://testdriver-sandbox.vercel.app/"
|
|
10
|
-
- command: wait-for-text
|
|
11
|
-
text: ${TD_WEBSITE}
|
|
12
|
-
timeout: 60000
|