From 1c428af69331eac7a7d86ee680d5075c91ad578b Mon Sep 17 00:00:00 2001 From: antuarc Date: Fri, 4 Oct 2024 13:44:22 +1000 Subject: [PATCH] add debugging to problematic scenario test --- test/features/data_usability_rating.feature | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/features/data_usability_rating.feature b/test/features/data_usability_rating.feature index e7336a20..1b8a8f9f 100644 --- a/test/features/data_usability_rating.feature +++ b/test/features/data_usability_rating.feature @@ -24,10 +24,12 @@ Feature: Data usability rating Scenario: As a publisher, when I create an open resource with a matching schema, I can verify the score is upgraded from 3 to 4 Given "TestOrgEditor" as the persona When I log in + 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 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 When I press "Test Resource" Then I should see an element with xpath "//div[contains(@class, 'qa openness-4')]"