-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
[py] complete test_should_throw_an_exception_if_an_alert_has_not_been_dealt_with_and_dismiss_the_alert
#15559
base: trunk
Are you sure you want to change the base?
Conversation
…n_dealt_with_and_dismiss_the_alert`
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
LGTM, adding @titusfortner to double check. |
User description
💥 What does this PR do?
Implements alert test
test_should_throw_an_exception_if_an_alert_has_not_been_dealt_with_and_dismiss_the_alert
as it was marked as TODO🔧 Implementation Notes
Uses code from other tests as inspiration
💡 Additional Considerations
🔄 Types of changes
PR Type
Tests
Description
Implemented the test
test_should_throw_an_exception_if_an_alert_has_not_been_dealt_with_and_dismiss_the_alert
.Added logic to handle and dismiss alerts in the test.
Marked the test as expected to fail on Safari using
@pytest.mark.xfail_safari
.Changes walkthrough 📝
alerts_tests.py
Added and completed alert handling test
py/test/selenium/webdriver/common/alerts_tests.py
test_should_throw_an_exception_if_an_alert_has_not_been_dealt_with_and_dismiss_the_alert
.exception handling.