Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(playwright): support HAR recording #3986

Merged
merged 4 commits into from
Nov 22, 2023

Conversation

kobenguyent
Copy link
Collaborator

@kobenguyent kobenguyent commented Nov 7, 2023

Motivation/Description of the PR

A HAR file is an HTTP Archive file that contains a record of all the network requests that are made when a page is loaded. It contains information about the request and response headers, cookies, content, timings, and more. You can use HAR files to mock network requests in your tests. HAR will be saved to output/har. More info could be found here https://playwright.dev/docs/api/class-browser#browser-new-context-option-record-har.

...
recordHar: {
    mode: 'minimal', // possible values: 'minimal'|'full'.
    content: 'embed' // possible values:  "omit"|"embed"|"attach".
}
...

Applicable helpers:

  • Playwright

Type of change

  • 馃殌 New functionality

Checklist:

  • Tests have been added
  • Documentation has been added (Run npm run docs)
  • Lint checking (Run npm run lint)
  • Local tests are passed (Run npm test)

@kobenguyent kobenguyent linked an issue Nov 7, 2023 that may be closed by this pull request
@Arhell Arhell requested a review from DavertMik November 9, 2023 00:06
@kobenguyent kobenguyent merged commit 0318bbb into 3.x Nov 22, 2023
12 checks passed
@kobenguyent kobenguyent deleted the 3985-feature-har-recording-with-playwright branch November 22, 2023 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] - HAR recording with Playwright
2 participants