|
30 | 30 | <scrollToTopOfPage stepKey="scrollToTopOfPage"/>
|
31 | 31 | <click selector="{{AdminNewWidgetSection.widgetOptions}}" stepKey="clickWidgetOptions"/>
|
32 | 32 | </actionGroup>
|
33 |
| - <actionGroup name="AdminFillSpecificPageWidgetMainFieldsActionGroup"> |
34 |
| - <annotations> |
35 |
| - <description>Fill widget main fields and widget layout by index for specified page DisplayOn option</description> |
36 |
| - </annotations> |
37 |
| - <arguments> |
38 |
| - <argument name="widget" type="entity" defaultValue="ProductsListWidget"/> |
39 |
| - <argument name="index" type="string" defaultValue="0"/> |
40 |
| - </arguments> |
41 |
| - <selectOption selector="{{AdminNewWidgetSection.widgetType}}" userInput="{{widget.type}}" stepKey="setWidgetType"/> |
42 |
| - <selectOption selector="{{AdminNewWidgetSection.widgetDesignTheme}}" userInput="{{widget.design_theme}}" stepKey="setWidgetDesignTheme"/> |
43 |
| - <click selector="{{AdminNewWidgetSection.continue}}" stepKey="clickContinue"/> |
44 |
| - <fillField selector="{{AdminNewWidgetSection.widgetTitle}}" userInput="{{widget.name}}" stepKey="fillTitle"/> |
45 |
| - <selectOption selector="{{AdminNewWidgetSection.widgetStoreIds}}" parameterArray="{{widget.store_ids}}" stepKey="setWidgetStoreIds"/> |
46 |
| - <fillField selector="{{AdminNewWidgetSection.widgetSortOrder}}" userInput="{{widget.sort_order}}" stepKey="fillSortOrder"/> |
47 |
| - <click selector="{{AdminNewWidgetSection.addLayoutUpdate}}" stepKey="clickAddLayoutUpdate"/> |
48 |
| - <waitForElementVisible selector="{{AdminNewWidgetSection.selectDisplayOn}}" stepKey="waitForSelectElement"/> |
49 |
| - <selectOption selector="{{AdminNewWidgetSection.displayOnByIndex(index)}}" userInput="{{widget.display_on}}" stepKey="setDisplayOn"/> |
50 |
| - <waitForPageLoad stepKey="waitForDisplayOnChangesApplied"/> |
51 |
| - <selectOption selector="{{AdminNewWidgetSection.layoutByIndex(index)}}" userInput="{{widget.page}}" stepKey="selectPage"/> |
52 |
| - <selectOption selector="{{AdminNewWidgetSection.templateByIndex(index)}}" userInput="{{widget.template}}" stepKey="selectTemplate"/> |
53 |
| - <scrollTo selector="{{AdminNewWidgetSection.containerByIndex(index)}}" stepKey="scrollToSelectContainerElement"/> |
54 |
| - <waitForPageLoad stepKey="waitForScroll"/> |
55 |
| - <selectOption selector="{{AdminNewWidgetSection.containerByIndex(index)}}" userInput="{{widget.container}}" stepKey="setContainer"/> |
56 |
| - <waitForPageLoad stepKey="waitForContainerChangesApplied"/> |
57 |
| - </actionGroup> |
58 |
| - <!--Create Product List Widget--> |
59 |
| - <actionGroup name="AdminCreateProductsListWidgetActionGroup" extends="AdminCreateWidgetActionGroup"> |
60 |
| - <annotations> |
61 |
| - <description>EXTENDS: AdminCreateWidgetActionGroup. Creates a Product List Widget. Validates that the Success Message is present and correct.</description> |
62 |
| - </annotations> |
63 |
| - |
64 |
| - <click selector="{{AdminNewWidgetSection.addNewCondition}}" stepKey="clickAddNewCondition"/> |
65 |
| - <selectOption selector="{{AdminNewWidgetSection.selectCondition}}" userInput="{{widget.condition}}" stepKey="selectCondition"/> |
66 |
| - <waitForElement selector="{{AdminNewWidgetSection.ruleParameter}}" stepKey="waitRuleParameter"/> |
67 |
| - <click selector="{{AdminNewWidgetSection.ruleParameter}}" stepKey="clickRuleParameter"/> |
68 |
| - <click selector="{{AdminNewWidgetSection.openChooser}}" stepKey="clickChooser"/> |
69 |
| - <waitForAjaxLoad stepKey="waitForAjaxLoad"/> |
70 |
| - <click selector="{{AdminNewWidgetSection.selectAll}}" stepKey="clickSelectAll"/> |
71 |
| - <click selector="{{AdminNewWidgetSection.applyParameter}}" stepKey="clickApplyRuleParameter"/> |
72 |
| - <click selector="{{AdminMainActionsSection.save}}" stepKey="clickSaveWidget"/> |
73 |
| - <see selector="{{AdminMessagesSection.success}}" userInput="The widget instance has been saved" stepKey="seeSuccess"/> |
74 |
| - </actionGroup> |
75 |
| - |
76 |
| - <!--Create Dynamic Block Rotate Widget--> |
77 |
| - <actionGroup name="AdminCreateDynamicBlocksRotatorWidgetActionGroup" extends="AdminCreateWidgetActionGroup"> |
78 |
| - <annotations> |
79 |
| - <description>EXTENDS: AdminCreateWidgetActionGroup. Creates a Dynamic Block Rotate Widget.</description> |
80 |
| - </annotations> |
81 |
| - |
82 |
| - <selectOption selector="{{AdminNewWidgetSection.displayMode}}" userInput="{{widget.display_mode}}" stepKey="selectDisplayMode"/> |
83 |
| - <selectOption selector="{{AdminNewWidgetSection.restrictTypes}}" userInput="{{widget.restrict_type}}" stepKey="selectRestrictType"/> |
84 |
| - <click selector="{{AdminNewWidgetSection.saveAndContinue}}" stepKey="clickSaveWidget"/> |
85 |
| - <see selector="{{AdminMessagesSection.success}}" userInput="The widget instance has been saved" stepKey="seeSuccess"/> |
86 |
| - </actionGroup> |
87 |
| - |
88 |
| - <actionGroup name="AdminDeleteWidgetActionGroup"> |
89 |
| - <annotations> |
90 |
| - <description>Goes to the Admin Widget grid page. Deletes the provided Widget. Validates that the Success Message is present and correct.</description> |
91 |
| - </annotations> |
92 |
| - <arguments> |
93 |
| - <argument name="widget"/> |
94 |
| - </arguments> |
95 |
| - |
96 |
| - <amOnPage url="{{AdminWidgetsPage.url}}" stepKey="amOnAdmin"/> |
97 |
| - <waitForPageLoad stepKey="waitWidgetsLoad"/> |
98 |
| - <conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clearExistingFilters"/> |
99 |
| - <fillField selector="{{AdminWidgetsSection.widgetTitleSearch}}" userInput="{{widget.name}}" stepKey="fillTitle"/> |
100 |
| - <click selector="{{AdminWidgetsSection.searchButton}}" stepKey="clickContinue"/> |
101 |
| - <click selector="{{AdminWidgetsSection.searchResult}}" stepKey="clickSearchResult"/> |
102 |
| - <waitForPageLoad stepKey="waitForResultLoad"/> |
103 |
| - <click selector="{{AdminMainActionsSection.delete}}" stepKey="clickDelete"/> |
104 |
| - <waitForAjaxLoad stepKey="waitForAjaxLoad"/> |
105 |
| - <click selector="{{AdminConfirmationModalSection.ok}}" stepKey="confirmDelete"/> |
106 |
| - <waitForPageLoad stepKey="waitForDeleteLoad"/> |
107 |
| - <see selector="{{AdminMessagesSection.success}}" userInput="The widget instance has been deleted" stepKey="seeSuccess"/> |
108 |
| - </actionGroup> |
109 |
| - |
110 |
| - <actionGroup name="AdminCreateProductLinkWidgetActionGroup" extends="AdminCreateWidgetActionGroup"> |
111 |
| - <annotations> |
112 |
| - <description>EXTENDS: AdminCreateWidgetActionGroup. Creates a Product List Widget using the provided Product. Validates that the Success Message is present and correct.</description> |
113 |
| - </annotations> |
114 |
| - <arguments> |
115 |
| - <argument name="product"/> |
116 |
| - </arguments> |
117 |
| - |
118 |
| - <selectOption selector="{{AdminNewWidgetSection.selectTemplate}}" userInput="{{widget.template}}" after="waitForPageLoad" stepKey="setTemplate"/> |
119 |
| - <waitForAjaxLoad after="setTemplate" stepKey="waitForPageLoad2"/> |
120 |
| - <click selector="{{AdminNewWidgetSection.selectProduct}}" after="clickWidgetOptions" stepKey="clickSelectProduct"/> |
121 |
| - <fillField selector="{{AdminNewWidgetSelectProductPopupSection.filterBySku}}" userInput="{{product.sku}}" after="clickSelectProduct" stepKey="fillProductNameInFilter"/> |
122 |
| - <click selector="{{AdminDataGridHeaderSection.applyFilters}}" after="fillProductNameInFilter" stepKey="applyFilter"/> |
123 |
| - <click selector="{{AdminNewWidgetSelectProductPopupSection.firstRow}}" after="applyFilter" stepKey="selectProduct"/> |
124 |
| - <click selector="{{AdminMainActionsSection.save}}" stepKey="clickSaveWidget"/> |
125 |
| - <see selector="{{AdminMessagesSection.success}}" userInput="The widget instance has been saved" stepKey="seeSuccess"/> |
126 |
| - </actionGroup> |
127 | 33 | </actionGroups>
|
0 commit comments