Skip to content

Commit

Permalink
feat: collect har file on test fail
Browse files Browse the repository at this point in the history
Signed-off-by: David Kwon <[email protected]>
  • Loading branch information
dkwon17 committed Sep 25, 2023
1 parent e862bb5 commit 7b01249
Show file tree
Hide file tree
Showing 9 changed files with 410 additions and 2 deletions.
201 changes: 201 additions & 0 deletions tests/e2e/CheReporter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tests/e2e/driver/ChromeDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class ChromeDriver implements IDriver {

constructor() {
const options: Options = this.getDriverOptions();
options.setLoggingPrefs({performance: 'ALL'})
if (CHROME_DRIVER_CONSTANTS.TS_USE_WEB_DRIVER_FOR_TEST) {
this.driver = this.getDriverBuilder(options).build();
}
Expand Down
81 changes: 79 additions & 2 deletions tests/e2e/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tests/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"@typescript-eslint/parser": "^6.1.0",
"axios": "^0.25.0",
"chai": "^4.3.4",
"chrome-har": "^0.13.2",
"chromedriver": "^114.0.2",
"clone-deep": "^4.0.1",
"eslint": "^8.45.0",
Expand Down

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions tests/e2e/test.har

Large diffs are not rendered by default.

Loading

0 comments on commit 7b01249

Please sign in to comment.