Allow custom wsEndpoint for Playwright
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- angular, playwright, typescript
- Área
- build-system, testing-qa, tooling
Línea de trabajo
Empieza leyendo browser-provider.ts alrededor de las líneas 164-187, especialmente providerFactory, y después inspecciona las sobrescrituras del proveedor en plugins.ts alrededor de las líneas 265-284. Sigue cómo la configuración de Playwright llega al Angular builder y determina qué opción compatible con versiones anteriores es adecuada. Se considera terminado cuando se respeta un wsEndpoint configurado explícitamente en lugar de sobrescribirlo implícitamente.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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, 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.
After 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)
Describe the solution you'd like
Ideally, 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.
These are the options that I have on my mind, both of them backward compatible with the existing API:
- Allow full customization for the browser provider
The 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.
- Add
wsEndpointproperty to the builder schema, and allow overriding the value fromangular.json
Safer solution, but less flexible.
Describe alternatives you've considered
All other alternatives require significant efforts to support, and require bypassing the Angular builders, or using a different framework for the same purpose.
I'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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 27k
- Forks
- 11.8k
- Merge medio
- 1 d 2 h
- PR fusionados (30 d)
- 225
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de angular/angular-cli
-
`@angular/[email protected]` depends on vulnerable Vite 7.3.7 - GHSA-p4f5-76q4-ffq7 (Critical RCE)Abiertoarea: @angular/build
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
angular/angular-cli#34764 ·
Los mantenedores suelen responder en 1 día
-
ng add @angular/ssr fails with TypeError when an NgModule in the app module file has no bootstrap arrayPosiblemente ocupada @0z5a la tomó hoy. Abiertoarea: @schematics/angular
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
angular/angular-cli#34761 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
angular/angular-cli#34760 ·
Los mantenedores suelen responder en 1 día
-
Angular SSR can crash `AngularAppEngine` servers with a single aborted request (22.2.6 regression)Posiblemente ocupada @SkyZeroZx la tomó hace 1 día. Abiertoarea: @angular/ssr
Dificultad 4/5 3-5 días Aptitud para principiantes 20/100
angular/angular-cli#34754 ·
Los mantenedores suelen responder en 1 día
-
area: @schematics/angular
Dificultad 3/5 1-2 días Aptitud para principiantes 74/100
angular/angular-cli#34730 ·
Los mantenedores suelen responder en 1 día
Todos los issues de angular/angular-cli
Issues similares
-
truapi-release
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
paritytech/product-sdk#529 ·
Los mantenedores suelen responder en 1 día
-
Environments table lists page size 5 after 30Posiblemente ocupada @raus7n la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
litmuschaos/litmus#5743 ·
Los mantenedores suelen responder en 2 días
-
desktop grp:admin-donors type:graphics-bug ui-admin
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
milind-soni/OpenMausBot#6730 ·
Los mantenedores suelen responder en 1 día
-
Status: Triage Type: Bug / Error
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
mermaid-js/mermaid-v13#1059 ·
Los mantenedores suelen responder en 1 día