ci: enable Playwright browser tests in GitHub Actions

The GITHUB_ACTIONS skip was added before Playwright automation existed,
when tests required manual browser interaction. Now that Playwright
handles the OAuth flow programmatically, the skip is unnecessary —
GitHub Actions fully supports Playwright with localhost networking.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Chris Coutinho
2026-03-02 16:09:14 +01:00
parent abd43f8028
commit 0a53aa5fcd
3 changed files with 0 additions and 25 deletions
-7
View File
@@ -1109,13 +1109,6 @@ def oauth_callback_server():
The server automatically shuts down when the fixture is torn down.
"""
# FIXME: Playwright browser automation has issues with the localhost
# callback server in GitHub Actions CI. Address in a follow-up PR.
if os.getenv("GITHUB_ACTIONS"):
pytest.skip(
"OAuth tests with browser automation not supported in GitHub Actions CI"
)
# Use a dict to store auth codes keyed by state parameter
# This allows multiple concurrent OAuth flows
auth_states = {}
-7
View File
@@ -113,13 +113,6 @@ async def login_flow_oauth_token(
Uses Playwright browser automation to complete the OAuth flow against
Nextcloud, obtaining a token suitable for the port 8004 MCP session.
"""
# FIXME: Playwright browser automation has issues with the localhost
# callback server in GitHub Actions CI. Address in a follow-up PR.
if os.getenv("GITHUB_ACTIONS"):
pytest.skip(
"Login Flow tests with browser automation not supported in GitHub Actions CI"
)
nextcloud_host = os.getenv("NEXTCLOUD_HOST")
username = os.getenv("NEXTCLOUD_USERNAME")
password = os.getenv("NEXTCLOUD_PASSWORD")