Skip to content

Commit

Permalink
Playwright I.haveRequestHeaders should affect all the tabs (#3049)
Browse files Browse the repository at this point in the history
* Content of Before/After/All hooks will be logged in Allure report now

* fix(Playwright): I.haveRequestHeaders should affect all the tabs in the context, not only the first one

Co-authored-by: jancorvus <>
  • Loading branch information
jancorvus committed Sep 25, 2021
1 parent ff3e7c2 commit b4f7061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helper/Playwright.js
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ class Playwright extends Helper {
if (!customHeaders) {
throw new Error('Cannot send empty headers.');
}
return this.page.setExtraHTTPHeaders(customHeaders);
return this.browserContext.setExtraHTTPHeaders(customHeaders);
}

/**
Expand Down

0 comments on commit b4f7061

Please sign in to comment.