Skip to content

Commit 50cfa8f

Browse files
authored
Merge pull request #266 from veghdev/integrationtest_err
Integration test client catch all browser error
2 parents 25dc4b7 + 01129dc commit 50cfa8f

File tree

1 file changed

+4
-0
lines changed
  • test/integration/modules/integration-test/client

1 file changed

+4
-0
lines changed

test/integration/modules/integration-test/client/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ function getTestSteps(testCasesModule, testType, testIndex) {
3939
return testSteps;
4040
}
4141

42+
window.addEventListener("error", (event) => {
43+
catchError(event.error);
44+
});
45+
4246
try {
4347
let queryString = window.location.search;
4448
let urlParams = new URLSearchParams(queryString);

0 commit comments

Comments
 (0)