Skip to content

Commit

Permalink
chore: Update exception pattern (#11828)
Browse files Browse the repository at this point in the history
It would seem like chrome changed
the exception after last update making
it the same as was gotten on the
windows agent.

(cherry picked from commit 7e7bf71)
  • Loading branch information
caalador committed Sep 23, 2021
1 parent 833291a commit 8c023fb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public class ClientSideExceptionHandlingIT extends ChromeBrowserTest {

private static final By ERROR_LOCATOR = By.className("v-system-error");

public static final String ERROR_PATTERN = ".*TypeError.* : Cannot read properties of null .*reading 'foo'.*";

@Test
public void developmentModeExceptions() {
open();
Expand All @@ -35,8 +37,7 @@ public void developmentModeExceptions() {
String errorMessage = findElement(ERROR_LOCATOR).getText();

Assert.assertTrue("Unexpected error message: " + errorMessage,
Pattern.matches(".*TypeError.* property 'foo' of.*null.*",
errorMessage));
Pattern.matches(ERROR_PATTERN, errorMessage));
}

@Test
Expand Down

0 comments on commit 8c023fb

Please sign in to comment.