-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[QOL-9055] add scenario test for public reporting
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@OpenData | ||
@reporting | ||
Feature: Reporting | ||
|
||
@unauthenticated | ||
Scenario: I can view a 'Broken Links' report anonymously | ||
Given "Unauthenticated" as the persona | ||
When I visit "/report" | ||
And I click the link with text that contains "Broken links" | ||
Then I should see an element with xpath "//select[@name='organization']" | ||
And I should see an element with xpath "//table[@id='report-table']//th[contains(string(), 'Broken datasets')]" | ||
And I should see an element with xpath "//table[@id='report-table']//th[contains(string(), 'Broken links')]" | ||
And I should see an element with xpath "//table[@id='report-table']//td[position()=1]/a[contains(@href, 'report/broken-links') and contains(string(), 'Test Organisation')]" | ||
|
||
@unauthenticated | ||
Scenario: I can view a 'Data Usability Rating' report anonymously | ||
Given "Unauthenticated" as the persona | ||
When I visit "/report" | ||
And I click the link with text that contains "Data usability rating" | ||
Then I should see an element with xpath "//select[@name='organization']" | ||
And I should see an element with xpath "//table[@id='report-table']//th[contains(string(), 'Score TBC')]" | ||
And I should see an element with xpath "//table[@id='report-table']//th[contains(string(), 'Average score')]" | ||
And I should see an element with xpath "//table[@id='report-table']//td[position()=1]/a[contains(@href, 'report/openness') and contains(string(), 'Test Organisation')]" |