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
ecebf4cb
Commit
ecebf4cb
authored
5 months ago
by
Adrian Lorenc
Browse files
Options
Downloads
Patches
Plain Diff
ISAICP-9082: Split paragraphs.
parent
330a9f85
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!194
Release v2.0.0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/features/paragraphs/iframe.feature
+2
-2
2 additions, 2 deletions
tests/features/paragraphs/iframe.feature
tests/features/paragraphs/map.feature
+36
-0
36 additions, 0 deletions
tests/features/paragraphs/map.feature
with
38 additions
and
2 deletions
tests/features/paragraphs/
moderator
.feature
→
tests/features/paragraphs/
iframe
.feature
+
2
−
2
View file @
ecebf4cb
@api
@group-h
Feature
:
As a moderator of the site
I need to be able to use "iframe"
and "map"
paragraphs for content.
I need to be able to use "iframe" paragraphs for content.
Background
:
Given the following collection
:
...
...
@@ -10,7 +10,7 @@ Feature:
|
topic
|
HR
|
@javascript
Scenario
:
Moderator can manage
map and
iframe paragraph.
Scenario
:
Moderator can manage iframe paragraph.
Given users
:
|
Username
|
|
Zohan
|
...
...
This diff is collapsed.
Click to expand it.
tests/features/paragraphs/map.feature
0 → 100644
+
36
−
0
View file @
ecebf4cb
@api
@group-h
Feature
:
As a moderator of the site
I need to be able to use "map" paragraphs for content.
Background
:
Given the following collection
:
|
title
|
Paragraphs
collection
|
|
state
|
published
|
|
topic
|
HR
|
@javascript
Scenario
:
Moderator can manage map.
Given users
:
|
Username
|
|
Zohan
|
And the following collection user membership
:
|
collection
|
user
|
|
Paragraphs
collection
|
Zohan
|
And custom_page content
:
|
title
|
body
|
collection
|
author
|
state
|
topic
|
|
Don't
Mess
with
the
Zohan
|
Wanna
mess?
|
Paragraphs
collection
|
Zohan
|
published
|
HR
|
And I append "layout" to "field_paragraphs_body" field in "node" entity with following "Don't Mess with the Zohan" title
:
|
behavior_settings
|
a:3:{s:17:"layout_paragraphs";a:4:{s:6:"layout";s:13:"layout_onecol";s:6:"config";a:1:{s:5:"label";s:0:"";}s:11:"parent_uuid";N;s:6:"region";N;}s:16:"background_theme";a:0:{}s:11:"extra_class";a:0:{}}
|
Given
I am logged in as a moderator
And
I go to the edit form of the
"Don't Mess with the Zohan"
"custom page"
And
I click
"Choose component"
And
a modal should open
And
I click
"Map"
# As the Webtools Map a webservice, we only test a fake JSON.
And I fill in "JSON" with "{\"foo\"
:
\"bar\"}"
And
I press
"Save"
in the
"Modal buttons"
region
And
I press
"Update"
Then
I should see the success message
"Custom page Don't Mess with the Zohan has been updated."
And the response should contain "{\"foo\"
:
\"bar\"}"
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