Skip to content

Commit

Permalink
Merge pull request #280 from qld-gov-au/QOL-9055-amazon-linux-2
Browse files Browse the repository at this point in the history
QOL-9055 Fix bugs in public reporting
  • Loading branch information
ThrawnCA authored Sep 2, 2022
2 parents 7e9cd11 + 97815e1 commit 5ab9125
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 deletions.
23 changes: 23 additions & 0 deletions test/features/reporting.feature
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')]"
6 changes: 3 additions & 3 deletions vars/shared-CKANTest.var.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ extensions:
description: "CKAN Extension for Queensland Government Open Data"
type: "git"
url: "https://github.com/qld-gov-au/ckanext-data-qld.git"
version: "6.3.5"
version: "6.3.6"

CKANExtODICertificates: &CKANExtODICertificates
name: "ckanext-odi-certificates-{{ Environment }}"
Expand Down Expand Up @@ -119,15 +119,15 @@ extensions:
description: "CKAN Extension for Reporting"
type: "git"
url: "https://github.com/qld-gov-au/ckanext-report.git"
version: "0.3.1-qgov.1"
version: "0.3.1-qgov.2"

CKANExtArchiver: &CKANExtArchiver
name: "ckanext-archiver-{{ Environment }}"
shortname: "ckanext-archiver"
description: "CKAN Extension for Archiving needed for ckanext-qa"
type: "git"
url: "https://github.com/qld-gov-au/ckanext-archiver.git"
version: "2.1.1-qgov.11"
version: "2.1.1-qgov.12"

CKANExtQa: &CKANExtQa
name: "ckanext-qa-{{ Environment }}"
Expand Down
6 changes: 3 additions & 3 deletions vars/shared-OpenData.var.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ extensions:
description: "CKAN Extension for Queensland Government Open Data"
type: "git"
url: "https://github.com/qld-gov-au/ckanext-data-qld.git"
version: "6.3.5"
version: "6.3.6"

CKANExtODICertificates: &CKANExtODICertificates
name: "ckanext-odi-certificates-{{ Environment }}"
Expand Down Expand Up @@ -119,15 +119,15 @@ extensions:
description: "CKAN Extension for Reporting"
type: "git"
url: "https://github.com/qld-gov-au/ckanext-report.git"
version: "0.3.1-qgov.1"
version: "0.3.1-qgov.2"

CKANExtArchiver: &CKANExtArchiver
name: "ckanext-archiver-{{ Environment }}"
shortname: "ckanext-archiver"
description: "CKAN Extension for Archiving needed for ckanext-qa"
type: "git"
url: "https://github.com/qld-gov-au/ckanext-archiver.git"
version: "2.1.1-qgov.11"
version: "2.1.1-qgov.12"

CKANExtQa: &CKANExtQa
name: "ckanext-qa-{{ Environment }}"
Expand Down

0 comments on commit 5ab9125

Please sign in to comment.