Skip to content
Snippets Groups Projects
Commit 9d2a60d8 authored by Adrian Lorenc's avatar Adrian Lorenc Committed by Claudiu Cristea
Browse files

ISAICP-9584: File per report type.

parent e1d52466
No related branches found
No related tags found
2 merge requests!214ISAICP-9579: Fix SearchWidget: refer own submit callbacks precisely to prevent...,!212Release 2.3.0
......@@ -81,60 +81,3 @@ Feature:
| Messages overview |
| Distribution downloads |
# This scenario is a light test to avoid regressions.
Scenario: Moderators can access the list of published solutions and filter them by dates and type.
Given collection content:
| title |
| Monday's Artificial |
| Restless Burst |
Given solution content:
| title | collection | creation date | modification date | solution type |
| Worthy Puppet | Monday's Artificial | 2003-01-31T23:00 | 2015-12-07T13:57 | Interoperability Specification, Logging Service |
| Long Artificial | Restless Burst | 2012-09-14T00:00 | 2012-12-04T16:19 | Networking Infrastructure Enablers |
| Beta Frozen | Restless Burst | 2017-10-15T14:54 | 2017-11-24T12:43 | Data Owner |
Given I am logged in as a moderator
And I click "Reporting" in the "Administration toolbar" region
And I click "Solutions by solution type"
Then I should see the heading "Moderator: Solutions by type"
And I should see the link "Worthy Puppet"
And I should see the link "Long Artificial"
And I should see the link "Beta Frozen"
# Verify that the dates are shown in a human readable format.
# @see: https://citnet.tech.ec.europa.eu/CITnet/jira/browse/ISAICP-4924
And I should see the following lines of text:
| Fri, 31/01/2003 - 23:00 |
| Mon, 07/12/2015 - 13:57 |
| Fri, 14/09/2012 - 00:00 |
| Tue, 04/12/2012 - 16:19 |
| Sun, 15/10/2017 - 14:54 |
| Fri, 24/11/2017 - 12:43 |
# Verify that the "Authored on" facet is in place.
And I should see the link "January 2003"
And I should see the link "September 2012"
And I should see the link "October 2017"
# Same for the "Changed" facet.
And I should see the link "December 2012"
And I should see the link "December 2015"
And I should see the link "November 2017"
# Same for the "Solution type" facet.
And I should see the link "Interoperability Specification" in the "Content" region
And I should see the link "Logging Service" in the "Content" region
And I should see the link "Networking Infrastructure Enablers" in the "Content" region
And I should see the link "Data Owner" in the "Content" region
# Verify that only solutions are shown.
But I should not see the text "Monday's Artificial"
And I should not see the text "Restless Burst"
# Verify that the CSV link is present.
# Note: the link is rendered as icon in a real browser.
And I should see the link "Download CSV"
When I click "Download CSV"
Then I should get a valid web page
# Verify that access to the CSV endpoint is forbidden for anonymous and normal users.
When I am an anonymous user
And I am on "/admin/reporting/solutions-by-type/csv?_format=csv"
Then I should get an access denied error
When I am logged in as an "authenticated user"
And I am on "/admin/reporting/solutions-by-type/csv?_format=csv"
Then I should get an access denied error
@api @group-h
Feature: Solutions by type report
As a moderator of the site
In order to be able to manage the website
I need to be able to list the solutions by type.
# This scenario is a light test to avoid regressions.
Scenario: Moderators can access the list of published solutions and filter them by dates and type.
Given collection content:
| title |
| Monday's Artificial |
| Restless Burst |
Given solution content:
| title | collection | creation date | modification date | solution type |
| Worthy Puppet | Monday's Artificial | 2003-01-31T23:00 | 2015-12-07T13:57 | Interoperability Specification, Logging Service |
| Long Artificial | Restless Burst | 2012-09-14T00:00 | 2012-12-04T16:19 | Networking Infrastructure Enablers |
| Beta Frozen | Restless Burst | 2017-10-15T14:54 | 2017-11-24T12:43 | Data Owner |
Given I am logged in as a moderator
And I click "Reporting" in the "Administration toolbar" region
And I click "Solutions by solution type"
Then I should see the heading "Moderator: Solutions by type"
And I should see the link "Worthy Puppet"
And I should see the link "Long Artificial"
And I should see the link "Beta Frozen"
# Verify that the dates are shown in a human readable format.
# @see: https://citnet.tech.ec.europa.eu/CITnet/jira/browse/ISAICP-4924
And I should see the following lines of text:
| Fri, 31/01/2003 - 23:00 |
| Mon, 07/12/2015 - 13:57 |
| Fri, 14/09/2012 - 00:00 |
| Tue, 04/12/2012 - 16:19 |
| Sun, 15/10/2017 - 14:54 |
| Fri, 24/11/2017 - 12:43 |
# Verify that the "Authored on" facet is in place.
And I should see the link "January 2003"
And I should see the link "September 2012"
And I should see the link "October 2017"
# Same for the "Changed" facet.
And I should see the link "December 2012"
And I should see the link "December 2015"
And I should see the link "November 2017"
# Same for the "Solution type" facet.
And I should see the link "Interoperability Specification" in the "Content" region
And I should see the link "Logging Service" in the "Content" region
And I should see the link "Networking Infrastructure Enablers" in the "Content" region
And I should see the link "Data Owner" in the "Content" region
# Verify that only solutions are shown.
But I should not see the text "Monday's Artificial"
And I should not see the text "Restless Burst"
# Verify that the CSV link is present.
# Note: the link is rendered as icon in a real browser.
And I should see the link "Download CSV"
When I click "Download CSV"
Then I should get a valid web page
# Verify that access to the CSV endpoint is forbidden for anonymous and normal users.
When I am an anonymous user
And I am on "/admin/reporting/solutions-by-type/csv?_format=csv"
Then I should get an access denied error
When I am logged in as an "authenticated user"
And I am on "/admin/reporting/solutions-by-type/csv?_format=csv"
Then I should get an access denied error
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment