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

Commit

Permalink
Merge pull request #1278 from ec-europa/ISAICP-4615
Browse files Browse the repository at this point in the history
Isaicp 4615: query to align in the implementation monitoring of Tallinn Collection
  • Loading branch information
idimopoulos authored Jul 4, 2018
2 parents a7a2e59 + 3585050 commit 28a64ef
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions tests/features/communities/tallinn/initiative_page.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@api @tallinn
Feature: Display of reports for the Tallinn initiative.
In order to consult the Tallinn reports
As a privileged user
I need to be able to see the reports I have access to.

Scenario: Only the report entries are shown in the "Tallinn initiative" page.
Given users:
| Username |
| Jayda Ingham |
And the following collection user memberships:
| collection | user | roles |
| Tallinn Ministerial Declaration | Jayda Ingham | facilitator |
Given news content:
| title | collection | state |
| Results are out | Tallinn Ministerial Declaration | validated |
And document content:
| title | collection | state |
| Ministerial Declaration on eGovernment | Tallinn Ministerial Declaration | validated |
And tallinn_report content:
| title | author | collection |
| Italy report | Jayda Ingham | Tallinn Ministerial Declaration |

# All content except reports should be shown in the collection overview.
Given I am logged in as "Jayda Ingham"
When I go to the "Tallinn Ministerial Declaration" collection
Then I should see the "Results are out" tile
And I should see the "Ministerial Declaration on eGovernment" tile

# Only report content should be shown in the initiative page.
When I click "Tallinn initiative" in the "Left sidebar" region
Then I should see the "Italy report" tile
But I should not see the "Results are out" tile
And I should not see the "Ministerial Declaration on eGovernment" tile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function tallinn_install() {
],
],
'enabled' => 1,
'query_presets' => 'sm_entity_bundle:tallinn_report',
'query_presets' => 'entity_bundle|tallinn_report',
// Show all tallinn reports in one page.
'limit' => '33',
],
Expand Down

0 comments on commit 28a64ef

Please sign in to comment.