-
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.
Merge pull request #280 from qld-gov-au/QOL-9055-amazon-linux-2
QOL-9055 Fix bugs in public reporting
- Loading branch information
Showing
3 changed files
with
29 additions
and
6 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')]" |
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
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