Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #195 from qld-gov-au/develop
Browse files Browse the repository at this point in the history
Merge develop in master
  • Loading branch information
icesun authored Nov 5, 2021
2 parents 69fd6c1 + 621ee40 commit c467d13
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
15 changes: 7 additions & 8 deletions ckanext/data_qld_theme/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,13 @@
<span class="sr-only">Open/Close Mobile Menu</span>
</button>
<hgroup class="header-image pull-left">
<a
class="logo"
href="https://www.qld.gov.au"
title="Link to Queensland Gov website"
>

<img src="https://www.data.qld.gov.au/__data/assets/file/0014/100832/qld-gov-open-data-logo.svg" height="37px" alt="Queensland Government">

<!--
<img src="https://www.data.qld.gov.au/__data/assets/file/0014/100832/qld-gov-open-data-logo.svg" height="37px" alt="Queensland Government">
-->
<a class="logo" href="https://www.qld.gov.au" title="Link to Queensland Gov website">
<img src="https://www.data.qld.gov.au/__data/assets/file/0035/218789/qg-coa-white.svg" alt="Queensland Government" class="hidden-xs">
<img src="https://www.data.qld.gov.au/__data/assets/file/0027/218790/qg-coa-stacked-white.svg" alt="Queensland Government" class="hidden-sm hidden-md hidden-lg">
<img src="https://www.data.qld.gov.au/__data/assets/file/0028/218791/qg-coa-stacked.svg" alt="Queensland Government" class="hidden-xs hidden-sm hidden-md hidden-lg qg-print-coat-of-arms">
</a>
<div class="header__data-portal">
<a href="/">Open Data Portal</a>
Expand Down
4 changes: 2 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ git+https://github.com/ckan/[email protected]#egg=ckantoolkit
-e git+https://github.com/frictionlessdata/ckanext-validation.git#egg=ckanext-validation
-e git+https://github.com/qld-gov-au/[email protected]#egg=ckanext-qgov
-e git+https://github.com/qld-gov-au/[email protected]#egg=ckanext-archiver
-e git+https://github.com/qld-gov-au/ckanext-data-qld.git@develop#egg=ckanext-data-qld
-e git+https://github.com/qld-gov-au/ckanext-data-qld.git@4.0.0#egg=ckanext-data-qld
-e git+https://github.com/qld-gov-au/[email protected]#egg=ckanext-datarequests
-e git+https://github.com/qld-gov-au/[email protected]#egg=ckanext-qa
-e git+https://github.com/qld-gov-au/[email protected]#egg=ckanext-report
-e git+https://github.com/qld-gov-au/ckanext-ytp-comments.git@2.3.0-qgov#egg=ckanext-ytp-comments
-e git+https://github.com/qld-gov-au/ckanext-ytp-comments.git@2.4.0-qgov#egg=ckanext-ytp-comments

8 changes: 4 additions & 4 deletions test/features/comments.feature
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Feature: Comments
Then I should see "This is a reply" within 10 seconds

@comment-delete
Scenario: When an Org Admin visits a dataset belonging to their organisation, they can delete a comment and should not see text 'This comment was deleted.'
Scenario: When an Org Admin visits a dataset belonging to their organisation, they can delete a comment and should see deletion text for the user responsible.
Given "TestOrgAdmin" as the persona
When I log in
Then I go to dataset "warandpeace" comments
Expand All @@ -99,18 +99,18 @@ Feature: Comments
Then I press the element with xpath "//button[contains(string(), 'Confirm')]"
Then I take a screenshot
Then I should not see "This comment was deleted." within 2 seconds
And I should see "Comment deleted by test_org_admin." within 2 seconds
And I should see "Comment deleted by Test Admin." within 2 seconds

@comment-delete @datarequest
Scenario: When an Org Admin visits a data request belonging to their organisation, they can delete a comment and should not see text 'This comment was deleted.'
Scenario: When an Org Admin visits a data request belonging to their organisation, they can delete a comment and should see deletion text for the user responsible.
Given "TestOrgAdmin" as the persona
When I log in
And I go to data request "Test Request" comments
And I press the element with xpath "//a[@title='Delete comment']"
Then I should see "Are you sure you want to delete this comment?" within 1 seconds
Then I press the element with xpath "//button[contains(string(), 'Confirm')]"
Then I should not see "This comment was deleted." within 2 seconds
And I should see "Comment deleted by test_org_admin." within 2 seconds
And I should see "Comment deleted by Test Admin." within 2 seconds

@comment-tab
Scenario: Non-logged in users should not see comment form in dataset tab
Expand Down

0 comments on commit c467d13

Please sign in to comment.