File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
app/code/Magento/CatalogRule/Test/Mftf Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 47
47
<fillField selector =" {{AdminNewCatalogPriceRule.description}}" userInput =" {{catalogRule.description}}" stepKey =" fillDescription" />
48
48
<click selector =" {{AdminCategoryBasicFieldSection.enableCategoryLabel}}" stepKey =" selectActive" />
49
49
<selectOption selector =" {{AdminNewCatalogPriceRule.websites}}" parameterArray =" {{catalogRule.website_ids}}" stepKey =" selectSite" />
50
- <selectOption selector =" {{AdminNewCatalogPriceRule.customerGroups}}" parameterArray =" {{catalogRule.customer_group_ids}}" stepKey =" selectCustomerGroup" />
51
50
<click stepKey =" openActionDropdown" selector =" {{AdminNewCatalogPriceRule.actionsTab}}" />
52
51
<fillField stepKey =" fillDiscountValue" selector =" {{AdminNewCatalogPriceRuleActions.discountAmount}}" userInput =" {{catalogRule.discount_amount}}" />
52
+
53
+ <scrollToTopOfPage stepKey =" scrollToTop" />
54
+ <waitForPageLoad stepKey =" waitForApplied" />
53
55
</actionGroup >
54
56
55
57
<actionGroup name =" CreateCatalogPriceRuleConditionWithAttribute" >
109
111
<actionGroup name =" selectGeneralCustomerGroupActionGroup" >
110
112
<selectOption selector =" {{AdminNewCatalogPriceRule.customerGroups}}" userInput =" General" stepKey =" selectCustomerGroup" />
111
113
</actionGroup >
114
+
115
+ <actionGroup name =" selectNotLoggedInCustomerGroupActionGroup" >
116
+ <selectOption selector =" {{AdminNewCatalogPriceRule.customerGroups}}" userInput =" NOT LOGGED IN" stepKey =" selectCustomerGroup" />
117
+ </actionGroup >
112
118
</actionGroups >
Original file line number Diff line number Diff line change 21
21
<before >
22
22
<actionGroup ref =" LoginAsAdmin" stepKey =" login" />
23
23
24
- <createData entity =" CatalogRuleWithAllCustomerGroups" stepKey =" createCatalogPriceRule" />
25
24
<createData entity =" ApiCategory" stepKey =" createFirstCategory" />
26
25
<createData entity =" ApiSimpleProduct" stepKey =" createFirstProduct" >
27
26
<requiredEntity createDataKey =" createFirstCategory" />
69
68
<amOnPage url =" {{CatalogRulePage.url}}" stepKey =" goToPriceRulePage" />
70
69
<waitForPageLoad stepKey =" waitForPriceRulePage" />
71
70
<actionGroup ref =" createCatalogPriceRule" stepKey =" createCatalogPriceRule" >
72
- <argument name =" catalogRule" value =" CatalogRuleWithAllCustomerGroups" />
71
+ <argument name =" catalogRule" value =" CatalogRuleWithAllCustomerGroups" />
73
72
</actionGroup >
73
+ <actionGroup ref =" selectNotLoggedInCustomerGroupActionGroup" stepKey =" selectCustomerGroup" />
74
74
<actionGroup ref =" CreateCatalogPriceRuleConditionWithAttribute" stepKey =" createCatalogPriceRuleCondition" >
75
75
<argument name =" attributeName" value =" $$createProductAttribute.attribute[frontend_labels][0][label]$$" />
76
76
<argument name =" targetValue" value =" is" />
77
77
<argument name =" targetSelectValue" value =" is undefined" />
78
78
</actionGroup >
79
79
<click selector =" {{AdminNewCatalogPriceRule.save}}" stepKey =" saveRule" />
80
+ <magentoCLI command =" indexer:reindex" stepKey =" reindex" />
81
+ <magentoCLI command =" cache:flush" stepKey =" flushCache" />
80
82
81
83
<!-- Check Catalog Price Rule for first product-->
82
84
<amOnPage url =" {{StorefrontProductPage.url($$createFirstProduct.custom_attributes[url_key]$$)}}" stepKey =" navigateToFirstProductPage" />
You can’t perform that action at this time.
0 commit comments