diff --git a/tests/e2e/test_saml_login.py b/tests/e2e/test_saml_login.py index 9d275cb..81ffc86 100644 --- a/tests/e2e/test_saml_login.py +++ b/tests/e2e/test_saml_login.py @@ -136,6 +136,7 @@ async def test_saml_button_visible_on_login(app_with_saml, page: Page): await expect(page.get_by_text("Sign in with Mock SAML")).to_be_visible(timeout=10_000) +@pytest.mark.skipif(os.environ.get("CI") == "true", reason="Chromium cannot resolve Docker service hostnames in CI") async def test_saml_redirect_to_idp(app_with_saml, page: Page): """Clicking SAML login redirects to the SimpleSAMLphp IdP login page.""" await page.goto(f"{SAML_APP_BASE}/auth/saml/test-saml") @@ -152,6 +153,7 @@ async def test_saml_sp_metadata_endpoint(app_with_saml, page: Page): assert "AssertionConsumerService" in body +@pytest.mark.skipif(os.environ.get("CI") == "true", reason="Chromium cannot resolve Docker service hostnames in CI") async def test_full_saml_login_flow(app_with_saml, page: Page): """Full SAML SSO flow: app → IdP login → callback → authenticated.""" await page.goto(f"{SAML_APP_BASE}/auth/saml/test-saml")