try button instead of text

This commit is contained in:
Kenneth Kehl
2024-03-25 13:52:51 -07:00
parent 9dcf157ccb
commit c4cce69f71

View File

@@ -163,7 +163,7 @@ def handle_no_existing_template_case(page):
print(f"PAGE!!! {page}")
dashboard_button = page.get_by_text("Dashboard")
dashboard_button = page.get_by_role("button", name="Dashboard")
expect(dashboard_button).to_be_visible()
dashboard_button.click()