Skip to content

Commit 77a3ab0

Browse files
feat: added sync support (#983)
* feat: added sync support * chore: linting
1 parent 0c49535 commit 77a3ab0

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

packages/cli/e2e/__tests__/fixtures/test-playwright-project/playwright.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ export default defineConfig({
88
extraHTTPHeaders: {
99
foo: 'bar',
1010
},
11+
proxy: {
12+
server: 'https://hello.com',
13+
username: 'username',
14+
password: 'password',
15+
},
1116
},
1217
expect: {
1318
toMatchSnapshot: {

packages/cli/e2e/__tests__/sync-playwright.spec.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ describe('sync-playwright', () => {
2222
expect(checklyConfig.config?.checks?.playwrightConfig?.timeout).toEqual(1234)
2323
expect(checklyConfig.config?.checks?.playwrightConfig?.use).toBeDefined()
2424
expect(checklyConfig.config?.checks?.playwrightConfig?.use?.baseURL).toEqual('http://127.0.0.1:3000')
25+
expect(checklyConfig.config?.checks?.playwrightConfig?.use?.proxy).toEqual({
26+
server: 'https://hello.com',
27+
username: 'username',
28+
password: 'password',
29+
})
2530
expect(checklyConfig.config?.checks?.playwrightConfig?.expect).toBeDefined()
2631
})
2732

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export default class PlaywrightConfigTemplate {
4040
contextOptions: use.contextOptions,
4141
bypassCSP: use.bypassCSP,
4242
userAgent: use.userAgent,
43+
proxy: use.proxy,
4344
}
4445
}
4546

0 commit comments

Comments
 (0)