diff --git a/tests/aignostics/application/cli_test.py b/tests/aignostics/application/cli_test.py index 4b1cd8d0..c2d2f728 100644 --- a/tests/aignostics/application/cli_test.py +++ b/tests/aignostics/application/cli_test.py @@ -660,6 +660,7 @@ def test_cli_run_result_delete_fails_on_no_arg(runner: CliRunner, record_propert def test_cli_run_execute(runner: CliRunner, tmp_path: Path, record_property) -> None: """Check run execution runs e2e.""" record_property("tested-item-id", "TC-APPLICATION-CLI-03") + # Step 1: Download the sample file result = runner.invoke( cli, diff --git a/tests/aignostics/notebook/gui_test.py b/tests/aignostics/notebook/gui_test.py index ef137fc3..648a4469 100644 --- a/tests/aignostics/notebook/gui_test.py +++ b/tests/aignostics/notebook/gui_test.py @@ -9,7 +9,7 @@ @pytest.mark.timeout(timeout=60) async def test_gui_marimo_extension(user: User, runner: CliRunner, silent_logging: None, record_property) -> None: """Test that the user can install and launch Marimo via the GUI.""" - record_property("tested-item-id", "SPEC-GUI-SERVICE") + record_property("tested-item-id", "TC-NOTEBOOK-GUI-01, SPEC-GUI-SERVICE") # Step 1: Check we are on the Notebook page await user.open("/notebook") diff --git a/tests/aignostics/system/gui_test.py b/tests/aignostics/system/gui_test.py index 96845f9a..a4e696ad 100644 --- a/tests/aignostics/system/gui_test.py +++ b/tests/aignostics/system/gui_test.py @@ -38,3 +38,29 @@ async def test_gui_system_switch_right(user: User, silent_logging, record_proper switch_interaction: UserInteraction = user.find("Mask secrets") switch_element: switch = switch_interaction.elements.pop() assert switch_element.value is True + + +@pytest.mark.integration +@pytest.mark.timeout(timeout=60) +async def test_gui_system_health_shown_and_updated(user: User, silent_logging, record_property) -> None: + """Test that health status is always visible in the footer on any page. + + As a user, I expect the current health of Launchpad to be always visible + in the footer of the GUI so that I can ensure the system is operational. + """ + record_property("tested-item-id", "TEST-SYSTEM-GUI-HEALTH, SWR-SYSTEM-GUI-HEALTH-1") + + # Test that health is visible on multiple pages to verify "always visible" + pages_to_test = [ + "/", # Main page + "/system", # System page + "/dataset/idc", # Dataset page + ] + + for page in pages_to_test: + # Navigate to the page + await user.open(page) + + # Verify the health status footer component is visible + # The health_link() is rendered in the footer and has a tooltip "Check Launchpad Status" + await user.should_see("Check Launchpad Status", retries=5 * 100)