diff --git a/tests/gitea/test_install.py b/tests/gitea/test_install.py index 84036da..ca3559b 100644 --- a/tests/gitea/test_install.py +++ b/tests/gitea/test_install.py @@ -58,7 +58,7 @@ def test_install_gitea(live_app, meta): try: page = browser.new_context(ignore_https_errors=True).new_page() harness_browser.goto_with_retry(page, url, accept_statuses=(200, 302), goto_timeout_ms=30_000) - page.wait_for_selector("input[name='_csrf']", timeout=20_000) + page.wait_for_selector("input#user_name", timeout=20_000) content = page.content() assert "gitea" in content.lower() or "sign in" in content.lower(), ( "Sign-in page did not render expected gitea content"