Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/nova_act_qa/tests/test_nova_act.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)