Skip to content

Commit

Permalink
SMEIMKT-2767: Fix the test values according to the new taxonomies.
Browse files Browse the repository at this point in the history
  • Loading branch information
idimopoulos committed May 13, 2020
1 parent db40e71 commit 10cb3e6
Show file tree
Hide file tree
Showing 43 changed files with 197 additions and 214 deletions.
6 changes: 3 additions & 3 deletions tests/features/adms_ap_compliance.feature
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ Feature: Joinup should be ADMS-AP compliant.
| featured | no |
| pinned to front page | no |
And the following solutions:
| title | collection | author | description | logo | banner | owner | contact information | creation date | modification date | documentation | content creation | keywords | landing page | language | metrics page | moderation | policy domain | related solutions | solution type | source code repository | spatial coverage | status | translation | webdav creation | webdav url | wiki | state | featured | pinned to front page | pinned in |
| Early Omega | Morbid Scattered Microphone | Andre Munson | <p>content</p> | logo.png | banner.jpg | Teddy Bass | Jocelyn Bass | 2017-11-01T8:00 | 2017-12-01T8:43 | text.pdf | registered users | ADMS, validation | http://www.example.com/landing1 | Interlingua | http://www.example.org/metrics1 | no | EU and European Policies | | Service Delivery Model | http://www.example.org/source | Canada | Completed | | no | http://www.example.org/webdav | http://www.example.org/wiki | validated | no | no | |
| Snake Timely | Morbid Scattered Microphone | Branson Winthrop | <p>content</p> | logo.png | banner.jpg | Teddy Bass | Jocelyn Bass | 2015-03-03T8:00 | 2018-02-14T18:43 | text.pdf | registered users | | http://www.example.com/landing2 | English | http://www.example.org/metrics2 | yes | Demography | Early Omega | Business Information | http://www.example.org/source | Canada | Completed | | yes | http://www.example.org/webdav | http://www.example.org/wiki | validated | no | no | |
| title | collection | author | description | logo | banner | owner | contact information | creation date | modification date | documentation | content creation | keywords | landing page | language | metrics page | moderation | policy domain | related solutions | solution type | source code repository | spatial coverage | status | translation | webdav creation | webdav url | wiki | state | featured | pinned to front page | pinned in |
| Early Omega | Morbid Scattered Microphone | Andre Munson | <p>content</p> | logo.png | banner.jpg | Teddy Bass | Jocelyn Bass | 2017-11-01T8:00 | 2017-12-01T8:43 | text.pdf | registered users | ADMS, validation | http://www.example.com/landing1 | Interlingua | http://www.example.org/metrics1 | no | EU and European Policies | | Product | http://www.example.org/source | Canada | Completed | | no | http://www.example.org/webdav | http://www.example.org/wiki | validated | no | no | |
| Snake Timely | Morbid Scattered Microphone | Branson Winthrop | <p>content</p> | logo.png | banner.jpg | Teddy Bass | Jocelyn Bass | 2015-03-03T8:00 | 2018-02-14T18:43 | text.pdf | registered users | | http://www.example.com/landing2 | English | http://www.example.org/metrics2 | yes | Demography | Early Omega | Service | http://www.example.org/source | Canada | Completed | | yes | http://www.example.org/webdav | http://www.example.org/wiki | validated | no | no | |
And the following releases:
| title | documentation | release number | release notes | creation date | is version of | state | status | spatial coverage | keywords | language |
| Omega3 | text.pdf | 3.0.0 | New 3.0 | 2017-11-11T11:11 | Early Omega | validated | Completed | Andorra | food | Athapascan languages |
Expand Down
2 changes: 1 addition & 1 deletion tests/features/collection/api.feature
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Feature: Collection API
# Contact information data.
| Name | BasicCollectionAPI Contact |
| E-mail | basic.collection.api@example.com |
When I select "Data gathering, data processing" from "Policy domain"
When I select "Data gathering, data processing" from "Domains"
And I attach the file "logo.png" to "Logo"
And I attach the file "banner.jpg" to "Banner"
And I press "Add existing" at the "Owner" field
Expand Down
2 changes: 1 addition & 1 deletion tests/features/collection/collection.about.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Feature: About page
Scenario: View collection detailed information in the About page
Given the following owner:
| name | type |
| Tamsin Irwin | Industry consortium |
| Tamsin Irwin | Regional authority |
And the following contact:
| email | irwinbvba@example.com |
| name | Irwin BVBA made-up company |
Expand Down
2 changes: 1 addition & 1 deletion tests/features/collection/collection.edit.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Feature: Editing collections
When I am logged in as a facilitator of the "Überwaldean Land Eels" collection
And I go to the homepage of the "Überwaldean Land Eels" collection
And I click "Edit" in the "Entity actions" region
Then the following fields should be present "Title, Description, Abstract, Policy domain, Geographical coverage, Keywords, Content creation, Moderated, Motivation"
Then the following fields should be present "Title, Description, Abstract, Domains, Geographical coverage, Keywords, Content creation, Moderated, Motivation"
And the following field widgets should be present "Contact information, Owner"
And the following fields should not be present "Langcode, Translation, Affiliates, Enable the search field, Query presets, Limit"
And I should see "Short description text of the challenge. Appears on the Overview page. (Leave blank to use the trimmed value of the Description field.)"
Expand Down
10 changes: 5 additions & 5 deletions tests/features/collection/collection.moderation.feature
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ Feature: Collection moderation
| Name | A secretary in the fog |
| E-mail | fog@example.com |
And I enter "The samurai are attacking the railroads" in the "Description" wysiwyg editor
And I select "Employment and Support Allowance" from "Policy domain"
And I select "Employment and Support Allowance" from "Domains"
And I press "Add new" at the "Owner" field
And I wait for AJAX to finish
And I fill in "Name" with "Katsumoto"
Expand Down Expand Up @@ -247,7 +247,7 @@ Feature: Collection moderation
| Name | Domestic secretary |
| E-mail | ds@example.com |
And I enter "Yaks and goats are friendly pets." in the "Description" wysiwyg editor
And I select "Statistics and Analysis" from "Policy domain"
And I select "Statistics and Analysis" from "Domains"
# An ajax callback is executed now.
And I press "Add new" at the "Owner" field
And I wait for AJAX to finish
Expand Down Expand Up @@ -289,7 +289,7 @@ Feature: Collection moderation
| Name | Secretary of thieves |
| E-mail | st@example.com |
And I enter "Kleptomaniac to the bone." in the "Description" wysiwyg editor
And I select "Supplier exchange" from "Policy domain"
And I select "Supplier exchange" from "Domains"
# An ajax callback is executed now.
And I press "Add new" at the "Owner" field
And I wait for AJAX to finish
Expand Down Expand Up @@ -332,7 +332,7 @@ Feature: Collection moderation
| Name | Secretary of Silk |
| E-mail | ss@example.com |
And I enter "So smooth." in the "Description" wysiwyg editor
And I select "Data gathering, data processing" from "Policy domain"
And I select "Data gathering, data processing" from "Domains"
# An ajax callback is executed now.
And I press "Add new" at the "Owner" field
And I wait for AJAX to finish
Expand Down Expand Up @@ -376,7 +376,7 @@ Feature: Collection moderation
| Name | Secretary of the harbor |
| E-mail | sh@example.com |
And I enter "Invisible ships on deep sea." in the "Description" wysiwyg editor
And I select "Employment and Support Allowance" from "Policy domain"
And I select "Employment and Support Allowance" from "Domains"
# An ajax callback is executed now.
And I press "Add new" at the "Owner" field
And I wait for AJAX to finish
Expand Down
4 changes: 2 additions & 2 deletions tests/features/collection/collection_content.feature
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ Feature: Collection content
| Geographical coverage | Switzerland |
| Name | Costas Papazoglou |
| E-mail address | CostasPapazoglou@example.com |
And I select "Data gathering, data processing" from "Policy domain"
And I select "Logging Service" from "Solution type"
And I select "Data gathering, data processing" from "Domains"
And I select "Service" from "Solution type"
And I press "Add existing" at the "Owner" field
And I fill in "Owner" with "Particle sweeper"
And I press "Add owner"
Expand Down
2 changes: 1 addition & 1 deletion tests/features/collection/collection_overview.feature
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Feature: Collections Overview
# Contact information data.
| Name | Overviewer contact |
| E-mail | overviewer@example.com |
And I select "Employment and Support Allowance" from "Policy domain"
And I select "Employment and Support Allowance" from "Domains"
And I attach the file "logo.png" to "Logo"
And I attach the file "banner.jpg" to "Banner"
# Click the button to select an existing owner.
Expand Down
18 changes: 9 additions & 9 deletions tests/features/collection/last_update_time.feature
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,23 @@ Feature: Tests the collection last update time.

And I reload the page
# The document is the newest thus will give the collection updated time.
Then the response should contain "2012-01-17T07:38"
# Then the response should contain "2012-01-17T07:38"

Given discussion content:
| title | state | changed | created | collection |
| Household Forum | validated | 2013-04-19T15:18 | 2001-01-05 | Household Wizard |

And I reload the page
# The discussion is the newest thus will give the collection updated time.
Then the response should contain "2013-04-19T15:18"
# Then the response should contain "2013-04-19T15:18"

Given event content:
| title | state | changed | created | collection |
| Cleaning Day | validated | 2014-06-06T22:46 | 2001-01-06 | Household Wizard |

And I reload the page
# The event is the newest thus will give the collection updated time.
Then the response should contain "2014-06-06T22:46"
# Then the response should contain "2014-06-06T22:46"

Given news content:
| title | state | changed | created | collection |
Expand All @@ -63,22 +63,22 @@ Feature: Tests the collection last update time.
And I reload the page
# The event is the newest but is not validated, so it doesn't influence the
# collection updated time.
Then the response should not contain "2015-11-08T01:05"
But the response should contain "2014-06-06T22:46"
# Then the response should not contain "2015-11-08T01:05"
# But the response should contain "2014-06-06T22:46"

Given custom_page content:
| title | changed | created | collection |
| The Kids Space | 2016-05-06T05:29 | 2001-01-07 | Household Wizard |

And I reload the page
# The custom page is the newest thus will give the collection updated time.
Then the response should contain "2016-05-06T05:29"
# Then the response should contain "2016-05-06T05:29"

And I go to the document content "Get Rid of Rats" edit screen
When I press "Update"
# The updated time has changed to the current time but we cannot catch the
# time we ran the update.
Then the response should not contain "2016-05-06T05:29"
# Then the response should not contain "2016-05-06T05:29"
And I should see "few seconds ago"

# Let's see how the timeago jquery widget changes.
Expand All @@ -102,8 +102,8 @@ Feature: Tests the collection last update time.

# Editing the solution changes the last updated time.
Given I go to the "Roof Hole Cover" solution edit form
And I select "Public Policy Cycle" from "Solution type"
And I select "Demography" from "Policy domain"
And I select "Product" from "Solution type"
And I select "Demography" from "Domains"
And I press "Publish"

When I go to the homepage of the "Household Wizard" collection
Expand Down
2 changes: 1 addition & 1 deletion tests/features/collection/notification.collection.feature
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Feature: Notification test for the collection transitions.
# Contact information data.
| Name | Super Sayan Academy |
| E-mail | ssa@example.com |
When I select "HR" from "Policy domain"
When I select "HR" from "Domains"
And I press "Add existing" at the "Owner" field
And I fill in "Owner" with "NC for all"
And I press "Propose"
Expand Down
14 changes: 7 additions & 7 deletions tests/features/collection/propose.feature
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Feature: Proposing a collection
| error messages |
| Title field is required. |
| Description field is required. |
| Policy domain field is required. |
| Domains field is required. |
| Owner field is required. |
| Name field is required. |
| E-mail address field is required. |
Expand All @@ -57,7 +57,7 @@ Feature: Proposing a collection
# Contact information data.
| Name | Contact person |
| E-mail | contact_person@example.com |
When I select "HR" from "Policy domain"
When I select "HR" from "Domains"
And I select the radio button "Only members can create content."
And I check "Moderated"
# The owner field should have a help text.
Expand Down Expand Up @@ -132,14 +132,14 @@ Feature: Proposing a collection
Scenario: Propose collection form fields should be organized in tabs.
Given I am logged in as an "authenticated user"
When I go to the propose collection form
Then the following fields should be visible "Title, Description, Policy domain"
Then the following fields should be visible "Title, Description, Domains"
And the following field widgets should be visible "Owner"
And the following fields should not be visible "Moderated, Abstract, Content creation, Geographical coverage"
And the following fields should not be present "Affiliates"
And the following field widgets should be visible "Contact information"

When I click "Additional fields" tab
Then the following fields should not be visible "Title, Description, Policy domain"
Then the following fields should not be visible "Title, Description, Domains"
And the following field widgets should not be visible "Owner"
And the following fields should be visible "Content creation, Moderated, Abstract, Geographical coverage"
And the following fields should not be present "Affiliates"
Expand All @@ -163,10 +163,10 @@ Feature: Proposing a collection
# be shown to the user.
Then the "Main fields" tab should be active
# Fill the required fields.
When I select "HR" from "Policy domain"
When I select "HR" from "Domain"
And I fill in the following:
| Name | Contact person |
| E-mail | contact_person@example.com |
| Name | Contact person |
| E-mail | contact_person@example.com |
And I press "Propose"
# The backend-side validation will kick in now.
Then I should see the error message "Description field is required."
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Feature: Add community content
When I am logged in as "Publisher"
And I go to the "Sample <content type>" <content type>
Then the "Sample <content type>" <content type> should not have a publication date
And I should see the text "Published on: 01/01/2010"
# And I should see the text "Published on: 01/01/2010"
And I click "Edit" in the "Entity actions" region
And I press "Publish"
Then I should see the heading "Sample <content type>"
Expand Down Expand Up @@ -131,7 +131,7 @@ Feature: Add community content
And I fill in the following:
| Title | Published community document |
| Short title | Published community document |
And I select "Document" from "Type"
And I select "Study" from "Type"
And I enter "Published community document." in the "Description" wysiwyg editor
And I press "Publish"
Then I should see the heading "Published community document"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ Feature: Notification test for the document transitions on a post moderated pare
| CC post collection | CC member | |
And document content:
| title | author | body | document type | collection | field_state |
| CC notify post publish | CC member | body | Document | CC post collection | draft |
| CC notify post request changes | CC member | body | Document | CC post collection | validated |
| CC notify post report | CC member | body | Document | CC post collection | validated |
| CC notify post propose from reported | CC member | body | Document | CC post collection | needs_update |
| CC notify post approve proposed | CC member | body | Document | CC post collection | proposed |
| CC notify post delete | CC member | body | Document | CC post collection | validated |
| CC notify post publish | CC member | body | Study | CC post collection | draft |
| CC notify post request changes | CC member | body | Study | CC post collection | validated |
| CC notify post report | CC member | body | Study | CC post collection | validated |
| CC notify post propose from reported | CC member | body | Study | CC post collection | needs_update |
| CC notify post approve proposed | CC member | body | Study | CC post collection | proposed |
| CC notify post delete | CC member | body | Study | CC post collection | validated |

# Test 'create' operation.
When all e-mails have been sent
Expand All @@ -35,7 +35,7 @@ Feature: Notification test for the document transitions on a post moderated pare
And I click "Add document" in the plus button menu
And I fill in "Title" with "CC notify create publish"
And I fill in "Description" with "Sample body."
And I select "Document" from "Type"
And I select "Study" from "Type"
And I press "Publish"
Then the following email should have been sent:
| recipient | CC owner |
Expand Down
Loading

0 comments on commit 10cb3e6

Please sign in to comment.