Skip to content

Commit

Permalink
[QOLSVC-8587] sync scenario testing with infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrawnCA committed Dec 12, 2024
1 parent 480a3ad commit fe93f1b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/features/data_usability_rating.feature
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@data_usability_rating
@OpenData
@multi_plugin
Feature: Data usability rating

Scenario Outline: As a publisher, when I create a resource with an open license, I can verify the openness score is correct
Expand Down
1 change: 1 addition & 0 deletions test/features/datasets.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@dataset
Feature: Dataset APIs

Scenario: Creative Commons BY-NC-SA 4.0 licence is an option for datasets
Expand Down
2 changes: 1 addition & 1 deletion test/features/organisations.feature
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Feature: Organization APIs
And I click the link to "/organization/new"
And I fill in "title" with "Org name more than 35 characters aaaaaaaaaaaa"
# This is actually the URL
And I fill in "name" with "org-name-more-than-35-characters-aaaaaaaaaaaa"
And I fill in "name" with "org-name-more-than-35-characters-aaaaaaaaaaaa" if present
And I press the element with xpath "//button[contains(@class, 'btn-primary')]"
And I take a debugging screenshot
# Breadcrumb should be truncated but preserve full name in a tooltip
Expand Down
18 changes: 18 additions & 0 deletions test/features/users.feature
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,21 @@ Feature: User APIs
And I fill in "password2" with "password1234"
And I press "Create Account"
Then I should see "Password: Must contain at least one number, lowercase letter, capital letter, and symbol"

Scenario: As a sysadmin, when I go to the sysadmin list, I can promote and demote other sysadmins
Given "SysAdmin" as the persona
When I log in
And I click the link to a url that contains "/ckan-admin/"
And I take a debugging screenshot
Then I should see an element with xpath "//table//a[string() = 'Administrator' and @href = '/user/admin']"
And I should not see "Test Admin"

When I fill in "promote-username" with "test_org_admin"
And I press "Promote"
And I take a debugging screenshot
Then I should see "Promoted Test Admin to sysadmin"
And I should see an element with xpath "//table//a[string() = 'Test Admin' and @href = '/user/test_org_admin']"

When I press the element with xpath "//tr/td/a[@href = '/user/test_org_admin']/../following-sibling::td//button[contains(@title, 'Revoke')]"
Then I should see "Revoked sysadmin permission from Test Admin"
And I should not see an element with xpath "//table//a[@href = '/user/test_org_admin']"

0 comments on commit fe93f1b

Please sign in to comment.