[py] complete test_should_throw_an_exception_if_an_alert_has_not_been_dealt_with_and_dismiss_the_alert#15559
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_alertas 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 testpy/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.