File tree Expand file tree Collapse file tree 4 files changed +68
-0
lines changed
app/code/Magento/Widget/Test/Mftf Expand file tree Collapse file tree 4 files changed +68
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+
9
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" AdminCreateSpecificEntityWidgetActionGroup" extends =" AdminCreateWidgetActionGroup" >
12
+ <annotations >
13
+ <description >Fill widget main fields and widget layout by index for anchor categories DisplayOn option</description >
14
+ </annotations >
15
+ <selectOption selector =" {{AdminNewWidgetSection.specificEntitySelectContainer}}" userInput =" {{widget.container}}" stepKey =" setContainer" />
16
+ <click selector =" {{AdminNewWidgetSection.specificEntitySelectRadio}}" stepKey =" clickSpecificEntityRadio" after =" waitForPageLoad" />
17
+ <click selector =" {{AdminNewWidgetSection.specificEntityOptionsChooser}}" stepKey =" clickChooserTrigger" after =" clickSpecificEntityRadio" />
18
+ <waitForAjaxLoad stepKey =" waitForAjaxCategoryLoad" after =" clickChooserTrigger" />
19
+ </actionGroup >
20
+ </actionGroups >
Original file line number Diff line number Diff line change 19
19
<data key =" display_on" >All Pages</data >
20
20
<data key =" container" >Main Content Area</data >
21
21
</entity >
22
+ <entity name =" CatalogCategoryLinkSpecifiedCategory" type =" widget" >
23
+ <data key =" type" >Catalog Category Link</data >
24
+ <data key =" design_theme" >Magento Luma</data >
25
+ <data key =" name" unique =" suffix" >TestCategoryLinkWidgetOnSpecifiedCategory</data >
26
+ <array key =" store_ids" >
27
+ <item >All Store Views</item >
28
+ </array >
29
+ <data key =" sort_order" >0</data >
30
+ <data key =" page" >catalog_category_view</data >
31
+ <data key =" template" >Category Link Block Template</data >
32
+ <data key =" condition" >SKU</data >
33
+ <data key =" display_on" >Anchor Categories</data >
34
+ <data key =" container" >Main Content Area</data >
35
+ </entity >
22
36
<entity name =" DynamicBlocksRotatorWidget" type =" widget" >
23
37
<data key =" type" >Dynamic Blocks Rotator</data >
24
38
<data key =" design_theme" >Magento Luma</data >
Original file line number Diff line number Diff line change 40
40
<element name =" displayMode" type =" select" selector =" select[id*='display_mode']" />
41
41
<element name =" restrictTypes" type =" select" selector =" select[id*='types']" />
42
42
<element name =" saveAndContinue" type =" button" selector =" #save_and_edit_button" timeout =" 30" />
43
+ <element name =" specificEntitySelectContainer" type =" select" selector =" select[name='widget_instance[0][anchor_categories][block]']" />
44
+ <element name =" specificEntitySelectRadio" type =" input" selector =" #specific_anchor_categories_0" />
45
+ <element name =" specificEntityOptionsChooser" type =" button" selector =" #anchor_categories_ids_0 .widget-option-chooser" />
43
46
</section >
44
47
</sections >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+
9
+ <tests xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/testSchema.xsd" >
11
+ <test name =" AdminContentWidgetsDisplayOnSpecificEntitiesTest" >
12
+ <annotations >
13
+ <features value =" Widget" />
14
+ <stories value =" Widget parameter configuration" />
15
+ <title value =" Admin content widgets display on specific entities test" />
16
+ <description value =" Admin should be able to select specific entities for widgets" />
17
+ <severity value =" CRITICAL" />
18
+ <group value =" widget" />
19
+ </annotations >
20
+ <before >
21
+ <actionGroup ref =" AdminLoginActionGroup" stepKey =" LoginAsAdmin" />
22
+ </before >
23
+ <after >
24
+ <actionGroup ref =" AdminLogoutActionGroup" stepKey =" logout" />
25
+ </after >
26
+ <amOnPage url =" {{AdminNewWidgetPage.url}}" stepKey =" createWidgetPage" />
27
+ <actionGroup ref =" AdminCreateSpecificEntityWidgetActionGroup" stepKey =" fillForm" >
28
+ <argument name =" widget" value =" CatalogCategoryLinkSpecifiedCategory" />
29
+ </actionGroup >
30
+ </test >
31
+ </tests >
You can’t perform that action at this time.
0 commit comments