You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR addressed issue: #104
## Version [0.1.2] - 2024-12-26
### Added
- Added support for Mailosaur email validation
- Added email rendering feature in the browser
- Added sleep_milliseconds tool to add delays in the test execution
- Added more robust error handling for Mailosaur email validation
Demo:
https://github.com/user-attachments/assets/a45ac3ad-27f4-4dcc-825a-a5192d62cee4
---------
Co-authored-by: Sahil Lavingia <[email protected]>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Copy file name to clipboardexpand all lines: packages/shortest/src/ai/prompts/index.ts
+10-3
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,8 @@ Expect: 1. Test case to be generated within at least 20 seconds [HAS_CALLBACK]
11
11
IMPORTANT GLOBAL RULES:
12
12
13
13
1. **Waiting for Conditions**:
14
-
- Some steps will require waiting before proceeding to the next action.
15
-
- This waiting can be based on a time delay (e.g., seconds or minutes) or waiting for an element to become visible or clickable.
16
-
- If the specified condition is not met after the allotted time, the test should be considered failed.
14
+
- Always wait for the tool to finish before proceeding to the next action. You will recieve a message to continue with your next action once the wait is over. Then validate the condition is met.
15
+
- Always wait for the tool to finish before proceeding to the next action. You will receive a message to continue with your next action once the wait is over. Then validate the condition is met.
17
16
18
17
2. **Tool Usage**:
19
18
- You may need to use provided tools to perform certain actions (e.g., clicking, navigating, or running callbacks).
@@ -42,6 +41,14 @@ IMPORTANT GLOBAL RULES:
42
41
- All expectations listed in the test instructions must be fulfilled.
43
42
- If any expectation is not met, the test case must be marked as failed.
44
43
44
+
8. **Testing Email**:
45
+
- If you need to test a condition that involves seeing the contents of an email, use the "check_email" tool.
46
+
- For email validation, you MUST always use 'Click' and 'Mouse' action instead of using keyboard shortcuts.
47
+
- This tool will grab the latest email from the email address given to you and will render it in a new tab for you to see.
48
+
- Once you are done with validating the email, navigate back to the original tab.
49
+
- You MUST pass the email address that is given to you to the tool as a parameter otherwise it will fail.
50
+
- If no email address is given to you for this test, you should fail the test.
51
+
45
52
Your task is to:
46
53
1. Execute browser actions to validate test cases
47
54
2. Use provided browser tools to interact with the page
0 commit comments