You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use different server startup commands in Playwright to allow tests that
command line arguments initialize form inputs as intended.
A full integration test is used because the Inspector comprises multiple
components (package bin entry point, start command, webClient, server),
making benefit to test-effort higher, and less dependent on
implementation details.
The webServer start command uses the package entry point to ensure tests
follow the exact user experience provided by: `npx @m/inspector [...]`
Playwright's `webServer.command` cannot be [re]configured after it has
started, so multiple Playwright invocations are necessary. To do this,
use an environment variable and a command-generating function (instead
of multiple config files).
Test tagging (`@cli`) is used to select which tests execute, while
keeping the entire test suite together.
Future:
Playwright has a feature under consideration to permit a web server per
project, which might simplify the config:
microsoft/playwright#22496
0 commit comments