Skip to content

Commit fc93349

Browse files
authored
feat(playwright): support bypass CSP in config (#3641)
1 parent 37c0806 commit fc93349

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/helpers/Playwright.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ Type: [object][5]
7373
- `channel` **any?** (While Playwright can operate against the stock Google Chrome and Microsoft Edge browsers available on the machine. In particular, current Playwright version will support Stable and Beta channels of these browsers. See [Google Chrome & Microsoft Edge][37].
7474
- `ignoreLog` **[Array][15]<[string][8]>?** An array with console message types that are not logged to debug log. Default value is `['warning', 'log']`. E.g. you can set `[]` to log all messages. See all possible [values][38].
7575
- `ignoreHTTPSErrors` **[boolean][26]?** Allows access to untrustworthy pages, e.g. to a page with an expired certificate. Default value is `false`
76+
- `bypassCSP` **[boolean][26]?** bypass Content Security Policy or CSP
7677

7778

7879

@@ -87,7 +88,7 @@ By default, video is saved to `output/video` dir. You can customize this path by
8788

8889
#### Trace Recording Customization
8990

90-
Trace recording provides a complete information on test execution and includes DOM snapshots, screenshots, and network requests logged during run.
91+
Trace recording provides complete information on test execution and includes DOM snapshots, screenshots, and network requests logged during run.
9192
Traces will be saved to `output/trace`
9293

9394
- `trace`: enables trace recording for failed tests; trace are saved into `output/trace` folder

lib/helper/Playwright.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ const pathSeparator = path.sep;
8888
* @prop {any} [channel] - (While Playwright can operate against the stock Google Chrome and Microsoft Edge browsers available on the machine. In particular, current Playwright version will support Stable and Beta channels of these browsers. See [Google Chrome & Microsoft Edge](https://playwright.dev/docs/browsers/#google-chrome--microsoft-edge).
8989
* @prop {string[]} [ignoreLog] - An array with console message types that are not logged to debug log. Default value is `['warning', 'log']`. E.g. you can set `[]` to log all messages. See all possible [values](https://playwright.dev/docs/api/class-consolemessage#console-message-type).
9090
* @prop {boolean} [ignoreHTTPSErrors] - Allows access to untrustworthy pages, e.g. to a page with an expired certificate. Default value is `false`
91+
* @prop {boolean} [bypassCSP] - bypass Content Security Policy or CSP
9192
*/
9293
const config = {};
9394

@@ -125,7 +126,7 @@ const config = {};
125126
*
126127
* #### Trace Recording Customization
127128
*
128-
* Trace recording provides a complete information on test execution and includes DOM snapshots, screenshots, and network requests logged during run.
129+
* Trace recording provides complete information on test execution and includes DOM snapshots, screenshots, and network requests logged during run.
129130
* Traces will be saved to `output/trace`
130131
*
131132
* * `trace`: enables trace recording for failed tests; trace are saved into `output/trace` folder

0 commit comments

Comments
 (0)