Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
digit-joinup-reference
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ec-europa
digit-joinup-reference
Commits
9d2a60d8
Commit
9d2a60d8
authored
1 month ago
by
Adrian Lorenc
Committed by
Claudiu Cristea
1 month ago
Browse files
Options
Downloads
Patches
Plain Diff
ISAICP-9584: File per report type.
parent
e1d52466
No related branches found
No related tags found
2 merge requests
!214
ISAICP-9579: Fix SearchWidget: refer own submit callbacks precisely to prevent...
,
!212
Release 2.3.0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/features/joinup_reports/reporting.feature
+0
-57
0 additions, 57 deletions
tests/features/joinup_reports/reporting.feature
tests/features/joinup_reports/solutions_by_type.feature
+63
-0
63 additions, 0 deletions
tests/features/joinup_reports/solutions_by_type.feature
with
63 additions
and
57 deletions
tests/features/joinup_reports/reporting.feature
+
0
−
57
View file @
9d2a60d8
...
...
@@ -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
This diff is collapsed.
Click to expand it.
tests/features/joinup_reports/solutions_by_type.feature
0 → 100644
+
63
−
0
View file @
9d2a60d8
@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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment