diff --git a/src/nova_act_qa/tests/test_nova_act.py b/src/nova_act_qa/tests/test_nova_act.py index 96a15f9..560102e 100644 --- a/src/nova_act_qa/tests/test_nova_act.py +++ b/src/nova_act_qa/tests/test_nova_act.py @@ -17,6 +17,7 @@ from nova_act_qa.utils.nova_act import NovaAct NOVA_ACT_URL = "https://nova.amazon.com/act" +EXPECTED_BLOG_POST_TITLE = "Useful, reliable agents from prototype to production" @pytest.mark.parametrize("nova", ["https://nova.amazon.com"], indirect=True) @@ -26,9 +27,11 @@ def test_navigation(nova: NovaAct): assert nova.page.url == NOVA_ACT_URL -@pytest.mark.parametrize("nova", ["https://nova.amazon.com/act"], indirect=True) +@pytest.mark.parametrize("nova", [NOVA_ACT_URL], indirect=True) def test_landing_page(nova: NovaAct): nova.test_bool("Am I on the Nova Act landing page?") nova.test_bool("Is there a Get Started section?") nova.test_str("The pip install command for the SDK", "pip install nova-act") nova.test_str("API Key button text", "Generate key") + nova.act("Click learn more") + nova.test_str("The title of the blog post", EXPECTED_BLOG_POST_TITLE)