Skip to content

Commit e8f0568

Browse files
authored
Update expected client exceptions for Firefox 140 (#7138)
1 parent 4498c1b commit e8f0568

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

mothership/test/src/org/labkey/test/tests/mothership/MothershipTest.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import org.apache.commons.lang3.tuple.Pair;
1919
import org.assertj.core.api.Assertions;
20+
import org.hamcrest.CoreMatchers;
2021
import org.junit.Before;
2122
import org.junit.BeforeClass;
2223
import org.junit.Ignore;
@@ -307,8 +308,8 @@ public void testInlineScriptClientError() throws Exception
307308
"mothership", rowMap.get("PageflowName"));
308309
checker().verifyEquals("Expect confirmation that the action is app",
309310
"clientException", rowMap.get("PageflowAction"));
310-
checker().verifyEquals("Unexpected exception message",
311-
"TypeError: x is undefined", rowMap.get("ExceptionMessage"));
311+
checker().verifyThat("Unexpected exception message",
312+
rowMap.get("ExceptionMessage"), CoreMatchers.containsString("x is undefined"));
312313
checker().verifyEquals("Expect confirmation that the user is correct",
313314
getCurrentUser(), rowMap.get("Username"));
314315
checker().verifyEquals("expext the referring URL to be the page from which we caused this",
@@ -340,8 +341,8 @@ public void testResourceScriptClientError() throws Exception
340341
"mothership", rowMap.get("PageflowName"));
341342
checker().verifyEquals("Expect confirmation that the action is app",
342343
"clientException", rowMap.get("PageflowAction"));
343-
checker().verifyEquals("Unexpected exception message",
344-
"TypeError: x is undefined", rowMap.get("ExceptionMessage"));
344+
checker().verifyThat("Unexpected exception message",
345+
rowMap.get("ExceptionMessage"), CoreMatchers.containsString("x is undefined"));
345346
checker().verifyEquals("Expect confirmation that the user is correct",
346347
getCurrentUser(), rowMap.get("Username"));
347348
checker().verifyEquals("expext the referring URL to be the page from which we caused this",
@@ -373,8 +374,8 @@ public void testNestedResourceScriptClientError() throws Exception
373374
"mothership", rowMap.get("PageflowName"));
374375
checker().verifyEquals("Expect confirmation that the action is app",
375376
"clientException", rowMap.get("PageflowAction"));
376-
checker().verifyEquals("Unexpected exception message",
377-
"TypeError: x is undefined", rowMap.get("ExceptionMessage"));
377+
checker().verifyThat("Unexpected exception message",
378+
rowMap.get("ExceptionMessage"), CoreMatchers.containsString("x is undefined"));
378379
checker().verifyEquals("Expect confirmation that the user is correct",
379380
getCurrentUser(), rowMap.get("Username"));
380381
checker().verifyEquals("expext the referring URL to be the page from which we caused this",
@@ -406,8 +407,8 @@ public void testAsyncScriptClientError() throws Exception
406407
"mothership", rowMap.get("PageflowName"));
407408
checker().verifyEquals("Expect confirmation that the action is clientException",
408409
"clientException", rowMap.get("PageflowAction"));
409-
checker().verifyEquals("Unexpected exception message",
410-
"TypeError: result.does is undefined", rowMap.get("ExceptionMessage"));
410+
checker().verifyThat("Unexpected exception message",
411+
rowMap.get("ExceptionMessage"), CoreMatchers.containsString("result.does is undefined"));
411412
checker().verifyEquals("Expect confirmation that the user is correct",
412413
getCurrentUser(), rowMap.get("Username"));
413414
checker().verifyEquals("expect the referring URL to be the page from which we caused this",

0 commit comments

Comments
 (0)