From 7ba9e676dbe0800274b822f704299a95c9643d78 Mon Sep 17 00:00:00 2001 From: Ryan Canty Date: Mon, 8 Sep 2025 15:37:31 -0400 Subject: [PATCH 1/2] test: add blog post title validation to nova act landing page test --- src/nova_act_qa/tests/test_nova_act.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/nova_act_qa/tests/test_nova_act.py b/src/nova_act_qa/tests/test_nova_act.py index 96a15f9..641c805 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 = "Introducing Amazon Nova Act" @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) From 2cd28047308ad685280219334a62ac222a0328a5 Mon Sep 17 00:00:00 2001 From: Ryan Canty Date: Mon, 8 Sep 2025 15:48:48 -0400 Subject: [PATCH 2/2] test: fix nova act blog post title --- src/nova_act_qa/tests/test_nova_act.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nova_act_qa/tests/test_nova_act.py b/src/nova_act_qa/tests/test_nova_act.py index 641c805..560102e 100644 --- a/src/nova_act_qa/tests/test_nova_act.py +++ b/src/nova_act_qa/tests/test_nova_act.py @@ -17,7 +17,7 @@ from nova_act_qa.utils.nova_act import NovaAct NOVA_ACT_URL = "https://nova.amazon.com/act" -EXPECTED_BLOG_POST_TITLE = "Introducing Amazon Nova Act" +EXPECTED_BLOG_POST_TITLE = "Useful, reliable agents from prototype to production" @pytest.mark.parametrize("nova", ["https://nova.amazon.com"], indirect=True)