Skip to content

Commit

Permalink
feat: added sync support (#983)
Browse files Browse the repository at this point in the history
* feat: added sync support

* chore: linting
  • Loading branch information
ejanusevicius authored Nov 26, 2024
1 parent 0c49535 commit 77a3ab0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export default defineConfig({
extraHTTPHeaders: {
foo: 'bar',
},
proxy: {
server: 'https://hello.com',
username: 'username',
password: 'password',
},
},
expect: {
toMatchSnapshot: {
Expand Down
5 changes: 5 additions & 0 deletions packages/cli/e2e/__tests__/sync-playwright.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ describe('sync-playwright', () => {
expect(checklyConfig.config?.checks?.playwrightConfig?.timeout).toEqual(1234)
expect(checklyConfig.config?.checks?.playwrightConfig?.use).toBeDefined()
expect(checklyConfig.config?.checks?.playwrightConfig?.use?.baseURL).toEqual('http://127.0.0.1:3000')
expect(checklyConfig.config?.checks?.playwrightConfig?.use?.proxy).toEqual({
server: 'https://hello.com',
username: 'username',
password: 'password',
})
expect(checklyConfig.config?.checks?.playwrightConfig?.expect).toBeDefined()
})

Expand Down
1 change: 1 addition & 0 deletions packages/cli/src/playwright/playwright-config-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default class PlaywrightConfigTemplate {
contextOptions: use.contextOptions,
bypassCSP: use.bypassCSP,
userAgent: use.userAgent,
proxy: use.proxy,
}
}

Expand Down

0 comments on commit 77a3ab0

Please sign in to comment.