[java] Fix failing java tests#17278
Conversation
Seems that `setDownloadBehavior` has been implemented in Firefox meanwhile.
Seems that `setNetworkConditions` has been enabled in FireFox beat meanwhile (but not in Firefox yet). But we don't have annotation like `@NotYetImplemented(FIREFOX-BETA)`.
Review Summary by QodoFix failing Java tests for Firefox browser compatibility
WalkthroughsDescription• Enable BrowserCommandsTest for Firefox by removing @NotYetImplemented annotations • Add Firefox-specific @Ignore annotation for alert-related test • Skip SetNetworkConditionsTest for Firefox beta in test configuration • Remove unused NotYetImplemented import from BrowserCommandsTest File Changes1. java/test/org/openqa/selenium/FormHandlingTest.java
|
Code Review by Qodo
1.
|
Seems that Firefox behavior with alerts was changed. Without "unhandledPromptBehavior" capability, command `wait.until(alertIsPresent())` is always failing in FireFox.
e7578c7 to
f541e76
Compare
f541e76 to
9865dd1
Compare
Review Summary by QodoFix failing Java tests for Firefox and improve test assertions
WalkthroughsDescription• Enable BrowserCommandsTest for Firefox by removing @NotYetImplemented annotations • Fix alert handling in Firefox by setting IGNORE mode as default capability • Improve WebScriptTest assertions using log collection instead of latches • Add SetNetworkConditionsTest to skipped tests for Firefox beta • Refactor DOM mutation and script pinning tests for better clarity File Changes1. java/test/org/openqa/selenium/UnexpectedAlertBehaviorTest.java
|
Code Review by Qodo
1.
|
cgoldberg
left a comment
There was a problem hiding this comment.
@asolntsev thanks... looks like everything Java related is passing in RBE
…ndler` instead of just waiting to latch, collect the logs to a list and assert this list. It gives much clearer assertion error.
1afda0f to
d7bfd69
Compare
🔗 Related Issues
💥 What does this PR do?
Fixes some failing Java tests
🔄 Types of changes