Skip to content

Commit

Permalink
revert checks for component library tests
Browse files Browse the repository at this point in the history
  • Loading branch information
l0uden committed Feb 13, 2025
1 parent 162c1ce commit 979231a
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions vizro-core/tests/e2e/component_library/test_component_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,20 @@ def test_kpi_card_component_library(dash_duo, request):
]
)
dash_duo.start_server(app)
dash_duo.wait_for_page(timeout=20)
dash_duo.wait_for_element("div[class='card-kpi card']")
dash_duo.wait_for_text_to_equal(
"div[class='vstack gap-4'] div:nth-of-type(1) div:nth-of-type(2) p[class='material-symbols-outlined']",
"folder_check_2",
)
dash_duo.wait_for_text_to_equal(
"div[class='vstack gap-4'] div:nth-of-type(1) div:nth-of-type(2) div[class='card-body']", "$200.00"
)
dash_duo.wait_for_text_to_equal(
"div[class='vstack gap-4'] div:nth-of-type(2) div:nth-of-type(2) p[class='material-symbols-outlined']",
"shopping_cart",
)
dash_duo.wait_for_text_to_equal(
"div[class='vstack gap-4'] div:nth-of-type(2) div:nth-of-type(3) div[class='card-body']", "1000"
)
result_image_path, expected_image_path = make_screenshot_and_paths(dash_duo.driver, request.node.name)
assert_image_equal(result_image_path, expected_image_path)
assert dash_duo.get_logs() == [], "browser console should contain no error"

0 comments on commit 979231a

Please sign in to comment.