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
# When the VSCode debugger is attached, then launch the browser headed by default
launch_options["headless"] =False
While I get the idea behind this, it does not take remote development on a headless server into account. If $DISPLAY is not set, the test run naturally fails and leaves the user wondering why this happens because he did not provide --headed (e.g. in VS Code's python.testing.pytestArgs configuration). IMHO, the implementation should be changed to check for $DISPLAY at least.
The text was updated successfully, but these errors were encountered:
The current implementation starts the browser in headed mode automatically, if pytest is invoked from VS Code's debugger.
playwright-pytest/pytest_playwright/pytest_playwright.py
Lines 118 to 120 in 68bd92a
While I get the idea behind this, it does not take remote development on a headless server into account. If
$DISPLAY
is not set, the test run naturally fails and leaves the user wondering why this happens because he did not provide--headed
(e.g. in VS Code'spython.testing.pytestArgs
configuration). IMHO, the implementation should be changed to check for$DISPLAY
at least.The text was updated successfully, but these errors were encountered: