From 0c2ea734d5c4fd543c9137f602670d800ee714de Mon Sep 17 00:00:00 2001 From: antuarc Date: Fri, 4 Oct 2024 14:14:14 +1000 Subject: [PATCH] fix test expectations to wait for usability upgrade - Resources with a schema will initially be 3 ticks and then upgraded once Validation runs --- test/features/data_usability_rating.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/features/data_usability_rating.feature b/test/features/data_usability_rating.feature index 1b8a8f9f..5aacd7f1 100644 --- a/test/features/data_usability_rating.feature +++ b/test/features/data_usability_rating.feature @@ -27,7 +27,7 @@ Feature: Data usability rating And I set "debug" to "True" And I create a dataset and resource with key-value parameters "license=other-open" and "format=CSV::upload=test_game_data.csv::schema=default" And I press the element with xpath "//ol[contains(@class, 'breadcrumb')]//a[starts-with(@href, '/dataset/')]" - And I reload page every 3 seconds until I see an element with xpath "//div[contains(@class, 'qa') and contains(@class, 'openness-')]" but not more than 10 times + And I reload page every 3 seconds until I see an element with xpath "//div[contains(@class, 'qa') and contains(@class, 'openness-4')]" but not more than 10 times Then I should not see an element with xpath "//div[contains(@class, 'openness-3')]" And I should see an element with xpath "//div[contains(@class, 'openness-4')]" When I take a debugging screenshot