Skip to content

Commit dc88728

Browse files
Merge pull request #217 from aignostics/chore/pysdk-20-link-missing-test-executions
Add health check test for gui module fix TC-APPLICATION-CL skip:test_…
2 parents be0b2bd + 80a812e commit dc88728

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

tests/aignostics/application/cli_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,7 @@ def test_cli_run_result_delete_fails_on_no_arg(runner: CliRunner, record_propert
660660
def test_cli_run_execute(runner: CliRunner, tmp_path: Path, record_property) -> None:
661661
"""Check run execution runs e2e."""
662662
record_property("tested-item-id", "TC-APPLICATION-CLI-03")
663+
663664
# Step 1: Download the sample file
664665
result = runner.invoke(
665666
cli,

tests/aignostics/notebook/gui_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
@pytest.mark.timeout(timeout=60)
1010
async def test_gui_marimo_extension(user: User, runner: CliRunner, silent_logging: None, record_property) -> None:
1111
"""Test that the user can install and launch Marimo via the GUI."""
12-
record_property("tested-item-id", "SPEC-GUI-SERVICE")
12+
record_property("tested-item-id", "TC-NOTEBOOK-GUI-01, SPEC-GUI-SERVICE")
1313

1414
# Step 1: Check we are on the Notebook page
1515
await user.open("/notebook")

tests/aignostics/system/gui_test.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,29 @@ async def test_gui_system_switch_right(user: User, silent_logging, record_proper
3838
switch_interaction: UserInteraction = user.find("Mask secrets")
3939
switch_element: switch = switch_interaction.elements.pop()
4040
assert switch_element.value is True
41+
42+
43+
@pytest.mark.integration
44+
@pytest.mark.timeout(timeout=60)
45+
async def test_gui_system_health_shown_and_updated(user: User, silent_logging, record_property) -> None:
46+
"""Test that health status is always visible in the footer on any page.
47+
48+
As a user, I expect the current health of Launchpad to be always visible
49+
in the footer of the GUI so that I can ensure the system is operational.
50+
"""
51+
record_property("tested-item-id", "TEST-SYSTEM-GUI-HEALTH, SWR-SYSTEM-GUI-HEALTH-1")
52+
53+
# Test that health is visible on multiple pages to verify "always visible"
54+
pages_to_test = [
55+
"/", # Main page
56+
"/system", # System page
57+
"/dataset/idc", # Dataset page
58+
]
59+
60+
for page in pages_to_test:
61+
# Navigate to the page
62+
await user.open(page)
63+
64+
# Verify the health status footer component is visible
65+
# The health_link() is rendered in the footer and has a tooltip "Check Launchpad Status"
66+
await user.should_see("Check Launchpad Status", retries=5 * 100)

0 commit comments

Comments
 (0)