Skip to content

Commit

Permalink
[java] [bidi] Enable test that pass in chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
pujagani committed Apr 8, 2024
1 parent 392ffbc commit b800dfc
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
import static org.openqa.selenium.testing.Safely.safelyCall;
import static org.openqa.selenium.testing.drivers.Browser.CHROME;
import static org.openqa.selenium.testing.drivers.Browser.EDGE;
import static org.openqa.selenium.testing.drivers.Browser.IE;
import static org.openqa.selenium.testing.drivers.Browser.SAFARI;
Expand Down Expand Up @@ -323,7 +322,6 @@ void canCallFunctionWithOwnershipNone() {
@NotYetImplemented(SAFARI)
@NotYetImplemented(IE)
@NotYetImplemented(EDGE)
@NotYetImplemented(CHROME)
void canCallFunctionThatThrowsException() {
String id = driver.getWindowHandle();
Script script = new Script(id, driver);
Expand All @@ -342,8 +340,7 @@ void canCallFunctionThatThrowsException() {

EvaluateResultExceptionValue exception = (EvaluateResultExceptionValue) result;
assertThat(exception.getExceptionDetails().getException().getType()).isEqualTo("error");
assertThat(exception.getExceptionDetails().getText())
.isEqualTo("SyntaxError: expected expression, got ')'");
assertThat(exception.getExceptionDetails().getText()).contains("SyntaxError:");
assertThat(exception.getExceptionDetails().getLineNumber()).isPositive();
assertThat(exception.getExceptionDetails().getColumnNumber()).isPositive();
assertThat(exception.getExceptionDetails().getStacktrace().getCallFrames().size()).isEqualTo(0);
Expand Down

0 comments on commit b800dfc

Please sign in to comment.