Skip to content

Commit e9fc6b3

Browse files
author
rpobotin
committed
Update headless mode condition to include GITHUB_RUN environment variable
1 parent 231749b commit e9fc6b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def browser(playwright_instance) -> Browser:
6868
Environment Variables:
6969
HEADLESS: When 'true', runs the browser without a visible UI
7070
"""
71-
if os.getenv('HEADLESS', 'false') == 'true':
71+
if os.getenv('HEADLESS', 'false') == 'true' or os.getenv('GITHUB_RUN') is not None:
7272
# Launch in headless mode (no visible browser window)
7373
browser = playwright_instance.chromium.launch(headless=True)
7474
else:

0 commit comments

Comments
 (0)