Skip to content
This repository was archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1430 from ec-europa/hotfix-ISAICP-4923
Browse files Browse the repository at this point in the history
hotfix-ISAICP-4923: Custom page content query regression.
  • Loading branch information
idimopoulos authored Nov 27, 2018
2 parents ada02fc + bfd8d59 commit b7850e4
Show file tree
Hide file tree
Showing 4 changed files with 415 additions and 340 deletions.
42 changes: 42 additions & 0 deletions tests/features/custom_page/community_content_listing.feature
Original file line number Diff line number Diff line change
Expand Up @@ -285,3 +285,45 @@ Feature:
And I check the box "Display a community content listing"
And I press "Save"
Then I should see the "Nintendo64 in the News" tile

Scenario: Test listing by keywords that contain the same word.

Given document content:
| title | keywords | content | collection | state |
| User's Guide | nintendo64 manuals | User manual | Nintendo64 | validated |
| Licence | nintendo64 licences | Licence | Nintendo64 | validated |
And I am logged in as a moderator

When I go to the homepage of the "Nintendo64" collection
And I click "Add custom page"

When I fill in the following:
| Title | Manuals |
| Body | Product guides |
And I check the box "Display a community content listing"
And I fill in "Query presets" with:
"""
entity_bundle|document
keywords|"nintendo64 manuals"
"""
When I press "Save"

Then I should see the "User's Guide" tile
But I should not see the "Licence" tile

When I go to the homepage of the "Nintendo64" collection
And I click "Add custom page"

When I fill in the following:
| Title | Licences |
| Body | Product licensing |
And I check the box "Display a community content listing"
And I fill in "Query presets" with:
"""
entity_bundle|document
keywords|"nintendo64 licences"
"""
When I press "Save"

Then I should see the "Licence" tile
But I should not see the "User's Guide" tile
Loading

0 comments on commit b7850e4

Please sign in to comment.