Galata tests: use webServer
in the Playwright config to start JupyterLab
#13650
Labels
webServer
in the Playwright config to start JupyterLab
#13650
Problem
Currently we need to start JupyterLab separately to run the Galata tests:
jupyterlab/.github/workflows/galata.yml
Lines 30 to 33 in 10c16e8
And wait for it to be ready:
jupyterlab/.github/workflows/galata.yml
Lines 42 to 46 in 10c16e8
Proposed Solution
Playwright added support for starting web servers via the
playwright.config.js
in 1.24:https://github.com/microsoft/playwright/releases/tag/v1.24.0
We could leverage this to streamline how the JupyterLab application is started for the UI tests. Playwright handles waiting for the application to be ready (
port
andurl
are configurable).Additional context
Docs: https://playwright.dev/docs/test-advanced#launching-a-development-web-server-during-the-tests
The text was updated successfully, but these errors were encountered: