Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
211 commits
Select commit Hold shift + click to select a range
e7bc0a5
MC-829: Empty slide displays on store front as big empty area
omiroshnichenko Jul 26, 2018
90d116a
MC-829: Empty slide displays on store front as big empty area
omiroshnichenko Jul 27, 2018
ccfb382
MC-829: Empty slide displays on store front as big empty area
omiroshnichenko Jul 27, 2018
dfc1722
MC-3397: Content Vertical Alignment inside a Container for Tab Item
anthoula Jul 27, 2018
7a1453b
MC-3397: Content Vertical Alignment inside a Container for Tab Item
anthoula Jul 27, 2018
4668562
MC-3397: Content Vertical Alignment inside a Container for Tab Item
anthoula Jul 27, 2018
3c65356
MC-3401: Update dev docs
anthoula Jul 27, 2018
a485ed1
MC-3398: Create/update MFTF tests for vertical alignment in tab item
anthoula Jul 27, 2018
7c00451
MC-3392: Hide Content block/ container from the stage
davemacaulay Jul 30, 2018
d06d065
MC-3392: Hide Content block/ container from the stage
davemacaulay Jul 30, 2018
9aaf2e1
MC-3398: Create/update MFTF tests for vertical alignment in tab item
anthoula Jul 30, 2018
e4b1563
MC-3398: Create/update MFTF tests for vertical alignment in tab item
anthoula Jul 30, 2018
f2098c2
MC-3398: Create/update MFTF tests for vertical alignment in tab item
anthoula Jul 30, 2018
ac7415f
MC-3398: Create/update MFTF tests for vertical alignment in tab item
anthoula Jul 30, 2018
4833f27
MC-3392: Hide Content block/ container from the stage
davemacaulay Jul 30, 2018
7616227
MC-3398: Create/update MFTF tests for vertical alignment in tab item
anthoula Jul 30, 2018
3a59a57
MC-3398: Create/update MFTF tests for vertical alignment in tab item
anthoula Jul 30, 2018
1ebb529
MC-3398: Create/update MFTF tests for vertical alignment in tab item
anthoula Jul 30, 2018
00c2ebc
MC-3392: Hide Content block/ container from the stage
davemacaulay Jul 31, 2018
b6821cf
MC-3392: Hide Content block/ container from the stage
davemacaulay Jul 31, 2018
7c1962c
MC-3397: Content Vertical Alignment inside a Container for Tab Item
anthoula Jul 31, 2018
e8ae590
MC-3398: Create/update MFTF tests for vertical alignment in tab item
anthoula Jul 31, 2018
cb6516e
MC-3398: Create/update MFTF tests for vertical alignment in tab item
anthoula Jul 31, 2018
c320136
MC-3398: Create/update MFTF tests for vertical alignment in tab item
anthoula Jul 31, 2018
810ec66
MC-3398: Create/update MFTF tests for vertical alignment in tab item
anthoula Jul 31, 2018
0674b25
MC-3398: Create/update MFTF tests for vertical alignment in tab item
anthoula Jul 31, 2018
79e7801
MC-3398: Create/update MFTF tests for vertical alignment in tab item
anthoula Jul 31, 2018
e255c3f
MC-3398: Create/update MFTF tests for vertical alignment in tab item
anthoula Jul 31, 2018
4040a9a
MC-3398: Create/update MFTF tests for vertical alignment in tab item
anthoula Jul 31, 2018
059c50d
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 1, 2018
c2658e4
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 1, 2018
103b07a
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 1, 2018
ff6a929
Merge branch 'develop' into MC-965-hide-content-on-stage
davemacaulay Aug 1, 2018
73918ca
Merge remote-tracking branch 'mainline/develop' into MC-931-tab-verti…
anthoula Aug 1, 2018
b6d0382
MC-3397: Content Vertical Alignment inside a Container for Tab Item
anthoula Aug 1, 2018
21c9c29
MC-3393: Create/update MFTF tests for hiding content blocks
davemacaulay Aug 1, 2018
d1f4a33
MC-3393: Create/update MFTF tests for hiding content blocks
davemacaulay Aug 1, 2018
6f71184
Merge branch 'develop' of github.com:magento/magento2-page-builder in…
omiroshnichenko Aug 1, 2018
b402b6c
MC-829: Empty slide displays on store front as big empty area
omiroshnichenko Aug 1, 2018
9c16a9c
Merge branch 'MC-829' of github.com:magento-obsessive-owls/magento2-p…
omiroshnichenko Aug 1, 2018
2a0e1ce
MC-3398: Create/update MFTF tests for vertical alignment in tab item
anthoula Aug 1, 2018
701b83e
MC-3398: Create/update MFTF tests for vertical alignment in tab item
anthoula Aug 1, 2018
9df4e7a
MC-829: Empty slide displays on store front as big empty area
omiroshnichenko Aug 1, 2018
5954b8e
MC-3398: Create/update MFTF tests for vertical alignment in tab item
anthoula Aug 1, 2018
24782c5
MC-829: Empty slide displays on store front as big empty area
omiroshnichenko Aug 1, 2018
297a9c0
MC-3393: Create/update MFTF tests for hiding content blocks
davemacaulay Aug 2, 2018
92fbe8a
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 2, 2018
a495f02
MC-829: Empty slide displays on store front as big empty area
omiroshnichenko Jul 26, 2018
505e874
MC-829: Empty slide displays on store front as big empty area
omiroshnichenko Jul 27, 2018
6d70704
MC-829: Empty slide displays on store front as big empty area
omiroshnichenko Jul 27, 2018
274705d
MC-829: Empty slide displays on store front as big empty area
omiroshnichenko Aug 1, 2018
c2f7d74
MC-829: Empty slide displays on store front as big empty area
omiroshnichenko Aug 1, 2018
a012e19
MC-829: Empty slide displays on store front as big empty area
omiroshnichenko Aug 1, 2018
aed488f
MC-3393: Create/update MFTF tests for hiding content blocks
davemacaulay Aug 2, 2018
adc75b8
MC-3393: Create/update MFTF tests for hiding content blocks
davemacaulay Aug 2, 2018
72d94e8
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 2, 2018
c2530c8
MC-3398: Create/update MFTF tests for vertical alignment in tab item
anthoula Aug 2, 2018
d1d8a69
MC-3393: Create/update MFTF tests for hiding content blocks
davemacaulay Aug 2, 2018
ec50177
Merge branch 'MC-965-hide-content-on-stage' of github.com:magento-obs…
omiroshnichenko Aug 2, 2018
fdcd6d1
MC-829: Empty slide displays on store front as big empty area
omiroshnichenko Aug 2, 2018
60786ef
MC-3393: Create/update MFTF tests for hiding content blocks
davemacaulay Aug 2, 2018
f92c4cb
Merge branch 'MC-965-hide-content-on-stage' of github.com:magento-obs…
davemacaulay Aug 2, 2018
0cc0ce0
MC-3393: Create/update MFTF tests for hiding content blocks
davemacaulay Aug 2, 2018
a6e79cf
MC-931: Content Vertical Alignment inside a Container for Tab Item
anthoula Aug 2, 2018
37a22a0
Merge remote-tracking branch 'mainline/develop' into MC-931-tab-verti…
anthoula Aug 2, 2018
69a8879
Merge branch 'develop' into MC-965-hide-content-on-stage
davemacaulay Aug 3, 2018
d383aeb
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 3, 2018
24c9e95
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 3, 2018
36910d0
MC-3393: Create/update MFTF tests for hiding content blocks
davemacaulay Aug 3, 2018
c47fbb8
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 3, 2018
4c007ca
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 3, 2018
e9f378e
MC-3393: Create/update MFTF tests for hiding content blocks
davemacaulay Aug 3, 2018
5916f94
MC-3393: Create/update MFTF tests for hiding content blocks
davemacaulay Aug 3, 2018
0892067
MC-3393: Create/update MFTF tests for hiding content blocks
davemacaulay Aug 3, 2018
d907ba4
MC-3402: Explicit Background Attributes for Slide
raith-hamzah Aug 3, 2018
e0ecc4a
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 3, 2018
626d0ea
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 3, 2018
bde5b47
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 3, 2018
2c4785b
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 3, 2018
7c1f06e
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 3, 2018
8b10958
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 3, 2018
1e8ec7d
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 6, 2018
289043f
MC-3393: Create/update MFTF tests for hiding content blocks
davemacaulay Aug 6, 2018
6959b7d
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 6, 2018
2941318
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 6, 2018
a6dfbf1
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 6, 2018
17c51b0
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 6, 2018
1988f4d
Merge branch 'MC-965-hide-content-on-stage' of github.com:magento-obs…
anthoula Aug 6, 2018
4d5e2c3
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 6, 2018
a3c9ce0
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 6, 2018
d68c860
Merge branch 'MC-965-hide-content-on-stage' of github.com:magento-obs…
davemacaulay Aug 6, 2018
bc3353e
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 6, 2018
8dc370c
MC-3406: Explicit Background Attributes for Tab
cspruiell Aug 6, 2018
435c427
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 6, 2018
49733b2
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 6, 2018
66f9d5c
MC-965 - Added concealable attribute to content-type-configuration do…
Aug 6, 2018
492eacc
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 6, 2018
6413ee7
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 6, 2018
86bdd76
Merge branch 'MC-965-hide-content-on-stage' of github.com:magento-obs…
anthoula Aug 6, 2018
934e8e7
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 7, 2018
1806be4
Merge branch 'MC-965-hide-content-on-stage' of github.com:magento-obs…
davemacaulay Aug 7, 2018
dfdbb93
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 7, 2018
5f50464
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 7, 2018
d35465a
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 7, 2018
9e52a57
Merge branch 'MC-965-hide-content-on-stage' of github.com:magento-obs…
anthoula Aug 7, 2018
c741403
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 7, 2018
c129289
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 7, 2018
1a19e83
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 7, 2018
1a715b6
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 7, 2018
c513edd
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 7, 2018
3133a92
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 7, 2018
164d734
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 7, 2018
178980e
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 7, 2018
c73d088
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 7, 2018
9787ada
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 7, 2018
f440f83
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 7, 2018
e957eea
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 7, 2018
639e327
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 7, 2018
0a2e4cb
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 7, 2018
a2ff6dc
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 8, 2018
1972f69
Merge branch 'MC-965-hide-content-on-stage' of github.com:magento-obs…
davemacaulay Aug 8, 2018
cffceb5
MC-3393: Create/update MFTF tests for hiding content blocks
davemacaulay Aug 8, 2018
3cad1fd
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 8, 2018
b642fc0
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 8, 2018
b0054ef
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 8, 2018
cd284b4
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 8, 2018
bd6485f
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 8, 2018
0e0cab1
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 8, 2018
719c61a
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 8, 2018
ab6cb99
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 8, 2018
0ca0cf8
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 8, 2018
94ba16e
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 8, 2018
f6e7494
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 9, 2018
3451938
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 9, 2018
1a38eff
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 9, 2018
a68b59e
Merge remote-tracking branch 'mainline/develop' into MC-931-tab-verti…
anthoula Aug 9, 2018
f653276
MC-3407: Create/update MFTF tests for background attributes for tab
cspruiell Aug 9, 2018
725647d
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 9, 2018
6c4e6fa
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 9, 2018
e40419b
MC-3393: Create/update MFTF tests for hiding content blocks
davemacaulay Aug 9, 2018
5c9ac1b
Merge branch 'develop' into MC-965-hide-content-on-stage
davemacaulay Aug 9, 2018
7ff2a40
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 9, 2018
9c1f679
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 9, 2018
1cc79ed
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 9, 2018
0acb371
MC-3396: Update dev docs
Aug 9, 2018
b3f8c0c
MC-3407: Create/update MFTF tests for background attributes for tab
cspruiell Aug 9, 2018
509fe75
Merge branch 'develop' into MC-965-hide-content-on-stage
davemacaulay Aug 9, 2018
c4d90d7
MC-3393: Create/update MFTF tests for hiding content blocks
davemacaulay Aug 9, 2018
7030af0
Merge remote-tracking branch 'origin/develop' into MC-969-slide-attri…
cspruiell Aug 9, 2018
d30d940
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 9, 2018
86a08cb
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 9, 2018
afa06f0
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 9, 2018
56f7c92
MC-3407: Create/update MFTF tests for background attributes for tab
cspruiell Aug 9, 2018
a984349
MC-1047: Fixed background images are broken in collage appearances
cspruiell Aug 9, 2018
d271535
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 10, 2018
420cc84
Merge branch 'MC-965-hide-content-on-stage' of github.com:magento-obs…
davemacaulay Aug 10, 2018
234f04b
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 10, 2018
5dadba1
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 10, 2018
29c0d9e
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 10, 2018
3a210e5
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 10, 2018
01063b5
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 10, 2018
ae98e96
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 10, 2018
40750ea
Merge branch 'MC-965-hide-content-on-stage' of github.com:magento-obs…
anthoula Aug 10, 2018
2bf98ed
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 13, 2018
8111e9a
MC-3393: Create/update MFTF tests for hiding content blocks
anthoula Aug 13, 2018
6985fa3
MC-3653: Can Drag & Drop Child Content Types Into Hidden Content Types
davemacaulay Aug 13, 2018
8793d02
Merge branch 'MC-965-hide-content-on-stage' of github.com:magento-obs…
davemacaulay Aug 13, 2018
90014b7
MC-3653: Can Drag & Drop Child Content Types Into Hidden Content Types
davemacaulay Aug 13, 2018
8cea89a
MC-3407: Create/update MFTF tests for background attributes for tab
cspruiell Aug 13, 2018
49e8833
MC-1047: Fixed background images are broken in collage appearances
cspruiell Aug 13, 2018
d672bba
MC-3407: Create/update MFTF tests for background attributes for tab
cspruiell Aug 13, 2018
3689141
MC-3653: Can Drag & Drop Child Content Types Into Hidden Content Types
davemacaulay Aug 14, 2018
e55ad1e
MC-3653: Can Drag & Drop Child Content Types Into Hidden Content Types
davemacaulay Aug 14, 2018
a4c13bd
Merge remote-tracking branch 'mainline/develop' into MC-913-Explicit-…
cspruiell Aug 14, 2018
d0ade18
MC-3653: Can Drag & Drop Child Content Types Into Hidden Content Types
davemacaulay Aug 14, 2018
0b5e075
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 14, 2018
bc413ee
MC-3393: Create/update MFTF tests for hiding content blocks
davemacaulay Aug 14, 2018
4a8127a
MC-3406: Explicit Background Attributes for Tab
cspruiell Aug 14, 2018
5657919
MC-1047: Fixed background images are broken in collage appearances
cspruiell Aug 14, 2018
4b95d67
MC-3636: User couldn't upload image to a hidden Image Content Block
davemacaulay Aug 15, 2018
987ce2f
MC-3636: User couldn't upload image to a hidden Image Content Block
davemacaulay Aug 15, 2018
650589b
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 15, 2018
3d4e9c1
MC-3406: Explicit Background Attributes for Tab
cspruiell Aug 15, 2018
82bf506
MC-3653: Can Drag & Drop Child Content Types Into Hidden Content Types
davemacaulay Aug 16, 2018
ab5211e
Merge branch 'develop' into MC-965-hide-content-on-stage
davemacaulay Aug 16, 2018
6b0b245
MC-3392: Hide Content block/ container from the stage
davemacaulay Aug 16, 2018
400a643
MC-3393: Create/update MFTF tests for hiding content blocks
davemacaulay Aug 16, 2018
08cd81f
Merge remote-tracking branch 'mainline/develop' into MC-913-Explicit-…
cspruiell Aug 16, 2018
2a0e4fa
Merge remote-tracking branch 'mainline/develop' into MC-969-slide-att…
cspruiell Aug 16, 2018
308c637
Merge remote-tracking branch 'mainline/develop' into MC-931-tab-verti…
anthoula Aug 16, 2018
a24e920
MC-3406: Explicit Background Attributes for Tab
cspruiell Aug 17, 2018
5d490c0
MC-3393: Create/update MFTF tests for hiding content blocks
davemacaulay Aug 17, 2018
9e90e46
MC-3653: Can Drag & Drop Child Content Types Into Hidden Content Types
davemacaulay Aug 17, 2018
bb9fa8e
Merge branch 'MC-913-Explicit-Background-Attributes-for-Tab' into cms…
davemacaulay Aug 17, 2018
9ed2053
Merge branch 'MC-969-slide-attributes' into cms-team-1-delivery
davemacaulay Aug 17, 2018
d1b9a09
MC-3407: Create/update MFTF tests for background attributes for tab
davemacaulay Aug 17, 2018
2188be7
MC-3407: Create/update MFTF tests for background attributes for tab
davemacaulay Aug 17, 2018
d5e1b7a
Merge remote-tracking branch 'origin/MC-931-tab-vertical-align' into …
cspruiell Aug 17, 2018
0de7171
MC-3406: Explicit Background Attributes for Tab
cspruiell Aug 17, 2018
ccc728d
MC-3406: Explicit Background Attributes for Tab
cspruiell Aug 20, 2018
4ab1ebf
MC-3406: Explicit Background Attributes for Tab
cspruiell Aug 20, 2018
6261152
Merge remote-tracking branch 'mainline/develop' into cms-team-1-delivery
cspruiell Aug 21, 2018
05185a9
MC-3406: Explicit Background Attributes for Tab
cspruiell Aug 21, 2018
0249d5c
MC-3406: Explicit Background Attributes for Tab
cspruiell Aug 21, 2018
86201e3
MC-3406: Explicit Background Attributes for Tab
cspruiell Aug 21, 2018
d3e63af
MC-3406: Explicit Background Attributes for Tab
cspruiell Aug 22, 2018
752d4c6
MC-3406: Explicit Background Attributes for Tab
cspruiell Aug 22, 2018
6f8a6a3
Merge remote-tracking branch 'mainline/develop' into cms-team-1-delivery
cspruiell Aug 22, 2018
da69523
MC-3406: Explicit Background Attributes for Tab
cspruiell Aug 22, 2018
fab69c9
MC-3406: Explicit Background Attributes for Tab
cspruiell Aug 22, 2018
94a8507
MC-3406: Explicit Background Attributes for Tab
cspruiell Aug 22, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions app/code/Magento/PageBuilder/Model/Stage/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ class Config
* @param \Magento\PageBuilder\Model\Wysiwyg\InlineEditingSupportedAdapterList $inlineEditingChecker
* @param \Magento\PageBuilder\Model\WidgetInitializerConfig $widgetInitializerConfig
* @param array $data
*
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
*/
public function __construct(
\Magento\PageBuilder\Model\ConfigInterface $config,
Expand Down Expand Up @@ -161,22 +163,24 @@ private function getContentTypes()
}

/**
* Flatten the content type data
* Flatten the content type
*
* @param $name
* @param $contentType
* @param string $name
* @param array $contentType
*
* @return array
*
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
*/
private function flattenContentTypeData($name, $contentType)
private function flattenContentTypeData(string $name, array $contentType)
{
return [
'name' => $name,
'label' => $contentType['label'],
'icon' => $contentType['icon'],
'form' => $contentType['form'],
'is_hideable' =>
isset($contentType['is_hideable']) && $contentType['is_hideable'] === 'false' ? false : true,
'contentType' => '',
'group' => $contentType['group'] ?? 'general',
'fields' => $this->uiComponentConfig->getFields($contentType['form']),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,44 @@
<waitForElementVisible selector="{{section.backgroundRepeat(index, backgroundRepeat.styleValue)}}" stepKey="waitForBackgroundRepeat"/>
<waitForElementVisible selector="{{section.backgroundAttachment(index, backgroundAttachment.value)}}" stepKey="waitForBackgroundAttachment"/>
</actionGroup>
<actionGroup name="validateBackgroundAttributes">
<arguments>
<argument name="section"/>
<argument name="backgroundImage"/>
<argument name="backgroundColor"/>
<argument name="backgroundPosition" defaultValue="PageBuilderBackgroundPosition_Default"/>
<argument name="backgroundSize" defaultValue="PageBuilderBackgroundSize_Default"/>
<argument name="backgroundRepeat" defaultValue="PageBuilderBackgroundRepeat_Default"/>
<argument name="backgroundAttachment" defaultValue="PageBuilderBackgroundAttachment_Default"/>
<argument name="index" defaultValue="1" type="string"/>
</arguments>
<comment userInput="validateBackgroundAttributes" stepKey="comment"/>
<waitForElementVisible selector="{{section.base(index)}}" stepKey="waitForBaseElement"/>
<waitForElementVisible selector="{{section.backgroundColor(index, backgroundColor.rgb)}}" stepKey="waitForBackgroundColor"/>
<waitForElementVisible selector="{{section.backgroundImage(index, backgroundImage.fileName)}}" stepKey="waitForBackgroundImage"/>
<waitForElementVisible selector="{{section.backgroundPosition(index, backgroundPosition.styleValue)}}" stepKey="waitForBackgroundPosition"/>
<waitForElementVisible selector="{{section.backgroundSize(index, backgroundSize.value)}}" stepKey="waitForBackgroundSize"/>
<waitForElementVisible selector="{{section.backgroundRepeat(index, backgroundRepeat.styleValue)}}" stepKey="waitForBackgroundRepeat"/>
<waitForElementVisible selector="{{section.backgroundAttachment(index, backgroundAttachment.value)}}" stepKey="waitForBackgroundAttachment"/>
</actionGroup>
<actionGroup name="validateMobileBackgroundAttributesWithNoImageOrColor">
<arguments>
<argument name="section"/>
<argument name="mobileBackgroundPosition" defaultValue="PageBuilderBackgroundPosition_Default"/>
<argument name="mobileBackgroundSize" defaultValue="PageBuilderBackgroundSize_Default"/>
<argument name="mobileBackgroundRepeat" defaultValue="PageBuilderBackgroundRepeat_Default"/>
<argument name="mobileBackgroundAttachment" defaultValue="PageBuilderBackgroundAttachment_Default"/>
<argument name="index" defaultValue="1" type="string"/>
</arguments>
<comment userInput="validateMobileBackgroundAttributesWithNoImageOrColor" stepKey="comment"/>
<waitForElementVisible selector="{{section.base(index)}}" stepKey="waitForBaseElement"/>
<waitForElementVisible selector="{{section.noMobileBackgroundColor(index)}}" stepKey="waitForBackgroundColor"/>
<waitForElementVisible selector="{{section.noMobileBackgroundImage(index)}}" stepKey="waitForBackgroundImage"/>
<waitForElementVisible selector="{{section.mobileBackgroundPosition(index, mobileBackgroundPosition.styleValue)}}" stepKey="waitForBackgroundPosition"/>
<waitForElementVisible selector="{{section.mobileBackgroundSize(index, mobileBackgroundSize.value)}}" stepKey="waitForBackgroundSize"/>
<waitForElementVisible selector="{{section.mobileBackgroundRepeat(index, mobileBackgroundRepeat.styleValue)}}" stepKey="waitForBackgroundRepeat"/>
<waitForElementVisible selector="{{section.mobileBackgroundAttachment(index, mobileBackgroundAttachment.value)}}" stepKey="waitForBackgroundAttachment"/>
</actionGroup>
<actionGroup name="validateMobileBackgroundAttributes">
<arguments>
<argument name="section"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,9 @@
<argument name="headingAlignment" defaultValue="PageBuilderHeadingAlignmentProperty_left"/>
</arguments>
<comment userInput="Click outside heading editable area" stepKey="commentClickOutside"/>
<waitForPageLoad stepKey="waitForAnimation1" time="30"/>
<seeElement selector="{{HeadingOnStage.headingTypeToolbar(index, headingType.toolbar)}}" stepKey="seeHeadingTypeToolbar"/>
<seeElement selector="{{HeadingOnStage.headingTextAlignToolbar(index, headingAlignment.toolbar)}}" stepKey="seeHeadingAlignmentToolbar"/>
<moveMouseOver selector="{{PageBuilderPanel.searchPanel}}" stepKey="moveMouseOutsideLiveEdit"/>
<click selector="{{PageBuilderPanel.searchPanel}}" stepKey="clickOutsideLiveEdit"/>
<waitForPageLoad stepKey="waitForAnimation2" time="30"/>
<waitForPageLoad stepKey="waitForAnimation2"/>
<dontSeeElement selector="{{HeadingOnStage.headingTypeToolbar(index, headingType.toolbar)}}" stepKey="dontSeeHeadingTypeToolbar"/>
<dontSeeElement selector="{{HeadingOnStage.headingTextAlignToolbar(index, headingAlignment.toolbar)}}" stepKey="dontSeeHeadingAlignmentToolbar"/>
</actionGroup>
Expand Down Expand Up @@ -111,7 +108,7 @@
<argument name="borderWidth" defaultValue="PageBuilderAdvancedBorderWidthPropertyDefault"/>
<argument name="index" defaultValue="1" type="string"/>
</arguments>
<waitForElementVisible selector="{{page.base(headingType.value, index)}}" stepKey="waitForElementVisible"/>
<waitForElementVisible selector="{{page.baseByTagName(headingType.value, index)}}" stepKey="waitForElementVisible"/>
<waitForElementVisible selector="{{page.noAlignment(headingType.value, index)}}" stepKey="waitForAlignmentVisible"/>
<waitForElementVisible selector="{{page.border(headingType.value, index, border.value)}}" stepKey="waitForBorderVisible"/>
<waitForElementVisible selector="{{page.noBorderColor(headingType.value, index)}}" stepKey="waitForBorderColorVisible"/>
Expand All @@ -135,7 +132,7 @@
<argument name="padding" defaultValue="PageBuilderPaddingPropertyDefault"/>
<argument name="index" defaultValue="1" type="string"/>
</arguments>
<waitForElementVisible selector="{{page.base(headingType.value, index)}}" stepKey="waitForElementVisible"/>
<waitForElementVisible selector="{{page.baseByTagName(headingType.value, index)}}" stepKey="waitForElementVisible"/>
<waitForElementVisible selector="{{page.alignment(headingType.value, index, alignment.value)}}" stepKey="waitForAlignmentVisible"/>
<waitForElementVisible selector="{{page.border(headingType.value, index, border.value)}}" stepKey="waitForBorderVisible"/>
<waitForElementVisible selector="{{page.borderColor(headingType.value, index, borderColor.rbg)}}" stepKey="waitForBorderColorVisible"/>
Expand All @@ -154,8 +151,8 @@
<argument name="borderWidth" defaultValue="PageBuilderAdvancedBorderWidthPropertyDefault"/>
<argument name="index" defaultValue="1" type="string"/>
</arguments>
<waitForElement selector="{{page.base(headingType.value, index)}}" stepKey="waitForElement"/>
<dontSeeElement selector="{{page.base(headingType.value, index)}}" stepKey="dontSeeElement"/>
<waitForElement selector="{{page.baseByTagName(headingType.value, index)}}" stepKey="waitForElement"/>
<dontSeeElement selector="{{page.baseByTagName(headingType.value, index)}}" stepKey="dontSeeElement"/>
<waitForElement selector="{{page.noAlignment(headingType.value, index)}}" stepKey="waitForAlignment"/>
<dontSeeElement selector="{{page.noAlignment(headingType.value, index)}}" stepKey="dontSeeAlignment"/>
<waitForElement selector="{{page.border(headingType.value, index, border.value)}}" stepKey="waitForBorder"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,28 @@
<waitForElementVisible selector="{{ImageOnConfigurationPanel.imageName(property.value)}}" stepKey="seeImageNameOnPreview"/>
<waitForElementVisible selector="{{ImageOnConfigurationPanel.imageSource(property.fileName)}}" stepKey="seeMainImageSource"/>
</actionGroup>
<actionGroup name="validateImage">
<arguments>
<argument name="section"/>
<argument name="pageNamePrefix" defaultValue="admin" type="string"/>
<argument name="image"/>
<argument name="index" defaultValue="1" type="string"/>
</arguments>
<comment userInput="validateImage" stepKey="comment"/>
<waitForElementVisible selector="{{section.base(index)}}" stepKey="waitForBaseElement"/>
<waitForElementVisible selector="{{section.imageSourceByIndex(index, image.fileName)}}" stepKey="waitForImage"/>
<grabAttributeFrom selector="{{section.imageSourceByIndex(index, image.fileName)}}" userInput="src" stepKey="contentTypeSrc"/>
<!-- Grab base URL -->
<comment userInput="Grab base URL" stepKey="commentGrabBaseUrl"/>
<executeJS function="return '{{pageNamePrefix}}'" stepKey="pageNamePrefix"/>
<grabFromCurrentUrl regex="/(^.+(?=\/$pageNamePrefix))/" stepKey="baseURL"/>
<!-- Convert all characters in string variables to regex friendly strings -->
<comment userInput="Convert all characters in string variables to regex friendly strings" stepKey="commentConvert"/>
<executeJS function="return '{$baseURL}'.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\\\^\\$\|]/g, '\\\\$&amp;')" stepKey="regexBaseURL"/>
<executeJS function="return '{{image.path}}'.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\\\^\\$\|]/g, '\\\\$&amp;')" stepKey="regexFilePath"/>
<assertRegExp stepKey="assertImageContainsFileInformation">
<expectedResult type="string">/{$regexBaseURL}\/pub\/media.*{$regexFilePath}.*\/{{image.fileName}}(_\d+)?\.{{image.extension}}/</expectedResult>
<actualResult type="variable">$contentTypeSrc</actualResult>
</assertRegExp>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,22 @@
<waitForElementVisible time="10" selector="{{PageBuilderStage.contentTypeInStageByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForContentTypeInStage" />
<waitForPageLoad stepKey="waitForToolbarsToLoad" time="30"/>
</actionGroup>
<actionGroup name="dragContentTypeToHiddenContainer">
<arguments>
<argument name="contentType"/>
<argument name="contentTypeIndex" defaultValue="1" type="string"/>
<argument name="containerTargetType"/>
<argument name="containerTargetIndex" defaultValue="1" type="string"/>
<argument name="offsetXCoordinate" defaultValue="null" type="string"/>
<argument name="offsetYCoordinate" defaultValue="null" type="string"/>
</arguments>
<click selector="{{PageBuilderPanel.searchPanel}}" stepKey="lostFocus"/>
<waitForElementVisible time="30" selector="{{PageBuilderPanel.draggableContentTypeInPanel(contentType.name)}}" stepKey="waitForContentTypeInPanel"/>
<dragAndDrop selector1="{{PageBuilderPanel.draggableContentTypeInPanel(contentType.name)}}" selector2="{{PageBuilderStage.contentTypeContainer(containerTargetType.role, containerTargetIndex)}}" x="{{offsetXCoordinate}}" y="{{offsetYCoordinate}}" stepKey="dropContentTypeIntoStage"/>
<waitForPageLoad stepKey="waitForAnimation" time="30"/>
<waitForElementNotVisible time="10" selector="{{PageBuilderStage.contentTypeInStageByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForContentTypeNotOnStage" />
<dontSeeElementInDOM selector="{{PageBuilderStage.contentTypeInStageByIndex(contentType.role, contentTypeIndex)}}" stepKey="dontSeeElementInContainer" />
</actionGroup>
<actionGroup name="dragContentTypeToContainerAndExpectEditPanel">
<arguments>
<argument name="contentType"/>
Expand Down Expand Up @@ -126,6 +142,7 @@
<argument name="containerOffsetXCoordinate" defaultValue="null" type="string"/>
<argument name="containerOffsetYCoordinate" defaultValue="null" type="string"/>
</arguments>
<comment userInput="moveContentTypeToContainer" stepKey="comment"/>
<waitForElementVisible time="20" selector="{{PageBuilderStage.contentTypeInStageByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForContentTypeInStageVisible"/>
<moveMouseOver selector="{{PageBuilderStage.contentTypeInStageByIndex(contentType.role, contentTypeIndex)}}" x="{{offsetXCoordinate}}" y="{{offsetYCoordinate}}" stepKey="onMouseOverContentTypeStage"/>
<waitForPageLoad time="30" stepKey="waitForAnimation"/>
Expand All @@ -135,6 +152,13 @@
<waitForPageLoad time="30" stepKey="waitForStageToLoad"/>
<waitForElementVisible time="30" selector="{{PageBuilderStage.contentTypeInStageByIndex(contentType.role, contentTypeIndex)}}" stepKey="waitForContentTypeInStage"/>
</actionGroup>
<actionGroup name="cannotMoveContentTypeToContainer" extends="moveContentTypeToContainer">
<arguments>
<argument name="positionInContainer" defaultValue="1" type="string"/>
</arguments>
<comment userInput="cannotMoveContentTypeToContainer" stepKey="comment"/>
<dontSeeElementInDOM selector="{{PageBuilderStage.contentTypeInsideContainerStage(containerTargetType.role, containerTargetIndex, positionInContainer, contentType.role, contentTypeIndex)}}" stepKey="dontSeeContentTypeInContainer" after="waitForContentTypeInStage"/>
</actionGroup>
<actionGroup name="dragContentTypeNextToExistingContentType">
<arguments>
<argument name="contentType" defaultValue=""/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
<actionGroup name="validateLayoutStylesNoHeight">
<arguments>
<argument name="page"/>
<argument name="index" defaultValue="1" type="string"/>
<argument name="verticalAlignContainer" defaultValue="PageBuilderVerticalAlignmentPropertyTop"/>
</arguments>
<waitForElement selector="{{page.container(index)}}" stepKey="waitForVerticalAlignContainer"/>
<seeElement selector="{{page.noMinHeight(index)}}" stepKey="dontSeeStyle"/>
<seeElement selector="{{page.containerStyle(index, verticalAlignContainer.style)}}" stepKey="seeVerticalAlignmentStyle"/>
</actionGroup>
<!-- Validate All Layout Styles -->
<actionGroup name="validateLayoutStylesWithAllUpdated">
<arguments>
Expand All @@ -16,7 +26,7 @@
<argument name="minHeight" defaultValue="PageBuilderMinHeightProperty_Empty"/>
<argument name="verticalAlignContainer" defaultValue="PageBuilderVerticalAlignmentPropertyCenter"/>
</arguments>
<waitForElementVisible selector="{{page.base(index)}}" stepKey="waitForRow"/>
<waitForElementVisible selector="{{page.base(index)}}" stepKey="waitForContentType"/>
<waitForElementVisible selector="{{page.minHeight(index, minHeight.value)}}" stepKey="waitForMinHeight"/>
<waitForElementVisible selector="{{page.verticalAlignContainer(index, verticalAlignContainer.value)}}" stepKey="waitForVerticalAlignContainer"/>
</actionGroup>
Expand Down
Loading