Skip to content

Commit 0c49535

Browse files
feat: added TS types for http proxy [sc-22386] (#982)
1 parent 01e8493 commit 0c49535

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/cli/src/constructs/playwright-config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
import { CheckProps } from './check'
22

3+
/**
4+
* Ref: https://playwright.dev/docs/network#http-proxy
5+
*/
6+
type HttpProxy = {
7+
server: string,
8+
username?: string,
9+
password?: string,
10+
}
11+
312
export type Use = {
413
baseURL?: string,
514
colorScheme?: string,
@@ -31,6 +40,7 @@ export type Use = {
3140
contextOptions?: object,
3241
bypassCSP?: boolean,
3342
userAgent?: string,
43+
proxy?: HttpProxy,
3444
}
3545

3646
export type Expect = {

0 commit comments

Comments
 (0)