This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/main by this push:
     new 1384f36  Add tests to test the public policy route
1384f36 is described below

commit 1384f36943b07c2115159034e317dda9293b936b
Author: Sean B. Palmer <[email protected]>
AuthorDate: Sun Dec 7 13:08:30 2025 +0000

    Add tests to test the public policy route
---
 tests/e2e/helpers.py                                 | 2 +-
 tests/e2e/{public => root}/__init__.py               | 0
 tests/e2e/{public => root}/conftest.py               | 6 ++++++
 tests/e2e/{public/test_index.py => root/test_get.py} | 9 +++++++++
 4 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/tests/e2e/helpers.py b/tests/e2e/helpers.py
index 0330977..0875765 100644
--- a/tests/e2e/helpers.py
+++ b/tests/e2e/helpers.py
@@ -20,7 +20,7 @@ from typing import Final
 
 from playwright.sync_api import Page
 
-_ATR_BASE_URL: Final[str] = os.environ.get("ATR_BASE_URL", 
"https://localhost:8080";)
+_ATR_BASE_URL: Final[str] = os.environ.get("ATR_BASE_URL", 
"https://localhost.apache.org:8080";)
 
 
 def visit(page: Page, path: str) -> None:
diff --git a/tests/e2e/public/__init__.py b/tests/e2e/root/__init__.py
similarity index 100%
rename from tests/e2e/public/__init__.py
rename to tests/e2e/root/__init__.py
diff --git a/tests/e2e/public/conftest.py b/tests/e2e/root/conftest.py
similarity index 90%
rename from tests/e2e/public/conftest.py
rename to tests/e2e/root/conftest.py
index 1d9b808..681de67 100644
--- a/tests/e2e/public/conftest.py
+++ b/tests/e2e/root/conftest.py
@@ -32,3 +32,9 @@ if TYPE_CHECKING:
 def page_index(page: Page) -> Generator[Page]:
     helpers.visit(page, "/")
     yield page
+
+
[email protected]
+def page_policies(page: Page) -> Generator[Page]:
+    helpers.visit(page, "/policies")
+    yield page
diff --git a/tests/e2e/public/test_index.py b/tests/e2e/root/test_get.py
similarity index 78%
rename from tests/e2e/public/test_index.py
rename to tests/e2e/root/test_get.py
index fe71808..d7d83d8 100644
--- a/tests/e2e/public/test_index.py
+++ b/tests/e2e/root/test_get.py
@@ -25,3 +25,12 @@ def test_index_has_login_link(page_index: Page) -> None:
 
 def test_index_loads(page_index: Page) -> None:
     expect(page_index).to_have_title("Apache Trusted Releases")
+
+
+def test_policies_has_heading(page_policies: Page) -> None:
+    heading = page_policies.get_by_role("heading", name="Release policy", 
level=1)
+    expect(heading).to_be_visible()
+
+
+def test_policies_loads(page_policies: Page) -> None:
+    expect(page_policies).to_have_title("Policies ~ ATR")


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to