[Feature]: Configure web servers per project
Los mantenedores suelen responder en 1 día
Ya se ha fusionado un pull request relacionado.
- #43860 de @microsoft-playwright-automation — fusionado
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- testing
Línea de trabajo
The request is to allow the webServer option to be set per entry in projects, as in the example config, so a project that does not need a server skips starting it. The payload names no source files, so start by finding where the test runner reads webServer and starts those servers. Done means a project with its own webServer starts only its servers, and a project without one starts none, with the smoke-test case covered by a test. Settle the open design questions with maintainers first, such as whether servers are shared across projects.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
🚀 Feature Request
I would love to have the possibility to configure local web servers per project.
In my use case, I have a full suite that runs against a local build of my application and a mock server, and a subset of those tests are used as smoke tests against production.
The problem is that playwright always executes the web servers configured when I run only the smoke-tests project.
Example
If I had the possibility to configure the webServers per project, I would be able to avoid waiting for the local applications to be instantiated, like:
export default defineConfig({
projects: [
{
name: 'functional-chromium',
grepInvert: /@smoke/,
use: { ...devices['Desktop Chrome'], baseURL: 'http://localhost:3000' },
webServer: [
{
command: 'yarn serve',
url: 'http://localhost:3000',
timeout: 380 * 1000,
reuseExistingServer: true,
},
{
command: 'yarn mock-server',
port: 3001,
reuseExistingServer: true,
},
],
},
{
name: 'smoke-chromium',
grep: /@smoke/,
use: { ...devices['Desktop Chrome'], baseURL: 'https://production.app.com' },
},
],
});
Motivation
It provides the necessary flexibility to run the playwright test suite in different settings, like:
- executing the test suite against a mock server served by the webServer project or against a real environment
- execute specific web servers on unrelated projects living in the same configuration
- Lenguaje dominante
- TypeScript
- Estrellas
- 99.1k
- Forks
- 6.8k
- Merge medio
- 16 h 7 min
- PR fusionados (30 d)
- 325
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin 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 microsoft/playwright
-
[Regression]: APIRequestContext JSON-encodes string data for "application/json;charset=UTF-8" since 1.65 (not in release notes)Posiblemente ocupada @microsoft-playwright-automation la tomó hoy. Abiertoneeds-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
microsoft/playwright#43937 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
needs-triage
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
microsoft/playwright#43926 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
[Feature]: Expose Advanced WebAuthn Virtual Authenticator Options in Cross-Browser Credentials APIAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 45/100
microsoft/playwright#43921 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
[Bug]: Firefox: `page.emulateMedia({ contrast })` updates `matchMedia()` but never restyles the pageAbiertoneeds-triage
Dificultad 4/5 3-5 días Aptitud para principiantes 44/100
microsoft/playwright#43916 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
[Bug]: Videos are not generated when reusing a single page between testsPosiblemente ocupada @microsoft-playwright-automation la tomó hoy. Abiertoneeds-triage
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
microsoft/playwright#43915 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de microsoft/playwright
Issues similares
-
Chip source filter and denial markers miss Storage rows when a Storage activity source is pickedAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
omdsh-dev/DSH-better-sidebar#1141 ·
Los mantenedores suelen responder en 2 días
-
desktop linux photos
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Cleanup SetupPosiblemente ocupada @AlexanderKaran la tomó hoy. Abiertodocumentation enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
e18e/framework-tracker#769 ·
Los mantenedores suelen responder en 1 día
-
fix(docker): correct stale --db-path comments in fetch/git Dockerfiles and clarify git READMEAbiertobug v2
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
modelcontextprotocol/servers#5483 ·
Los mantenedores suelen responder en 1 día