Title: Allow custom wsEndpoint for Playwright · Issue #33115 · angular/angular-cli · GitHub
Open Graph Title: Allow custom wsEndpoint for Playwright · Issue #33115 · angular/angular-cli
X Title: Allow custom wsEndpoint for Playwright · Issue #33115 · angular/angular-cli
Description: Command build Description In our project, I've been trying to set up visual regression testing using Vitest, and to make the screenshot tests stable, we want to make those tests in the same environment, regardless of the developers' OS, ...
Open Graph Description: Command build Description In our project, I've been trying to set up visual regression testing using Vitest, and to make the screenshot tests stable, we want to make those tests in the same environ...
X Description: Command build Description In our project, I've been trying to set up visual regression testing using Vitest, and to make the screenshot tests stable, we want to make those tests in the same env...
Opengraph URL: https://github.com/angular/angular-cli/issues/33115
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow custom wsEndpoint for Playwright","articleBody":"### Command\n\nbuild\n\n### Description\n\nIn our project, I've been trying to set up visual regression testing using Vitest, and to make the screenshot tests stable, we want to make those tests in the same environment, regardless of the developers' OS, which can impact the tests. When using Playwright as a browser provider, Vites allows for providing/overriding the WS endpoint, which is not respected & overridden in the unit test builder.\n\nAfter a quick look at the code, presumably this is being dropped in `browser-provider.ts:164-87` - `providerFactory(..)` function is called with only `baseOptions`, and also, `plugins.ts:265-284` has some more overrides, and comments (`// CLI provider browser options override, if present`)\n\n### Describe the solution you'd like\n\nIdeally, as a developer, I'd like to have better control over the browser provider configuration, instead of having it implicitly overridden on the builder side. \n\nThese are the options that I have on my mind, both of them backward compatible with the existing API:\n\n1. Allow full customization for the browser provider\n\nThe solution is as simple as not overriding the provider value if defined explicitly in `vitetest-base.config.ts`. This option would be backward compatible with the existing API, but might break the projects that've attempted to override the provider property and haven't noticed that it has no impact.\n\n2. Add `wsEndpoint` property to the builder schema, and allow overriding the value from `angular.json`\n\nSafer solution, but less flexible.\n\n### Describe alternatives you've considered\n\nAll other alternatives require significant efforts to support, and require bypassing the Angular builders, or using a different framework for the same purpose.\n\nI'm also happy to make a contribution, but first, I'd like to get an opinion, and maybe get more context on why the browser config is overridden from Angular's side.","author":{"url":"https://github.com/d3n1el1","@type":"Person","name":"d3n1el1"},"datePublished":"2026-05-01T08:07:39Z","url":"https://github.com/angular/angular-cli/issues/33115"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:eb4ef2d6-1007-c3d8-6c02-717c3c15952b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 87DC:296654:2F2C038:3EE5E3C:6B01DEB1 |
| html-safe-nonce | af0619ffbd50e69176239a0ee2fe2d9cb1991bc018b36b8023c75b8050e10e89 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0RDOjI5NjY1NDoyRjJDMDM4OjNFRTVFM0M6NkIwMURFQjEiLCJ2aXNpdG9yX2lkIjoiNTYzOTgxNzU1MDY5MTk1MDI1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4d932a82765f7b3e4b46f9605c8df2ec9b28bac83fa5be7efcf73d60c664295c |
| hovercard-subject-tag | issue:4363492669 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/33115/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7a89425261b2e792eaed8c9cd97e9e1916635b32d1723dffa7b60d5dcdf4c44d/angular/angular-cli/issues/33115 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7a89425261b2e792eaed8c9cd97e9e1916635b32d1723dffa7b60d5dcdf4c44d/angular/angular-cli/issues/33115 |
| og:image:alt | Command build Description In our project, I've been trying to set up visual regression testing using Vitest, and to make the screenshot tests stable, we want to make those tests in the same environ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | d3n1el1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width