-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
added python tests for alert interactions #1688
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
👷 Deploy request for selenium-dev pending review.Visit the deploys page to approve it
|
CLA assistant check
All committers have signed the CLA.
PR Description updated to latest commit (e20cdc8)
- Copy walkthrough table to "Files Changed" Tab
PR Review
2, because the PR involves adding straightforward test cases for alert interactions in a Python script. The changes are localized to a single file and focus on testing basic functionalities, which makes the review process relatively quick and easy.
Yes
Possible Bug: The tests might not clean up properly if an assertion fails, leading to browsers not being closed. Consider using a setup and teardown method or a context manager to ensure resources are always released.
Hardcoded URL: The URL for the test is hardcoded, which could make the tests less flexible and harder to run in different environments. Consider parameterizing the URL.
No
✨ Review tool usage guide:
Overview:
The review tool scans the PR code changes, and generates a PR review which includes several types of feedbacks, such as possible PR issues, security threats and relevant test in the PR. More feedbacks can be added by configuring the tool.
The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
- When commenting, to edit configurations related to the review tool (
pr_reviewersection), use the following template:
/review --pr_reviewer.some_config1=... --pr_reviewer.some_config2=...
- With a configuration file, use the following template:
[pr_reviewer]
some_config1=...
some_config2=...
See the review usage page for a comprehensive guide on using this tool.
PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
@diemol I would greatly appreciate it if you could let me know whether I need to make any additional changes to my pull request so it is acceptable for merging. I have not yet updated the relevant markdown files associated with these tests as I wanted to do it after the tests have been added so I can verify if markdown references to the added tests work correctly. Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @Arpan3323!
Uh oh!
There was an error while loading. Please reload this page.
User description
Description
added tests for Alert, Confirm, and Prompt popup
Motivation and Context
Missing tests in examples\python\tests\interactions\test_alerts.py
Types of changes
Checklist
Type
Tests
Description
test_alerts.pyfor handling different types of browser popups.test_alert_popupchecks the functionality of alert popups.test_confirm_popuptests the confirm popup interactions.test_prompt_popupverifies prompt popup interactions and input handling.Changes walkthrough
test_alerts.py
Add Tests for Alert, Confirm, and Prompt Popupsexamples/python/tests/interactions/test_alerts.py
test_alert_popupto handle and verify alertpopups.
test_confirm_popupto interact with and validate confirmpopups.
test_prompt_popupto interact with and check prompt popups.