Skip to content

Commit 7983d4b

Browse files
committed
Fixing a failing test
1 parent b7b1399 commit 7983d4b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

app/code/Magento/SalesRule/Test/Mftf/Test/CartPriceRuleForBundleProductTest.xml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@
7373
</actionGroup>
7474

7575
<!-- Reindex invalidated indices after product attribute has been created/deleted -->
76-
<magentoCron groups="index" stepKey="reindexInvalidatedIndices" />
76+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="indexerReindexAfterCreate">
77+
<argument name="indices" value=""/>
78+
</actionGroup>
7779
</before>
7880

7981
<after>
@@ -100,7 +102,9 @@
100102
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
101103

102104
<!-- Reindex invalidated indices after product attribute has been created/deleted -->
103-
<magentoCron groups="index" stepKey="reindexInvalidatedIndices2" />
105+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="indexerReindexAfterDeleted">
106+
<argument name="indices" value=""/>
107+
</actionGroup>
104108
</after>
105109

106110
<!-- Create the rule -->
@@ -135,8 +139,8 @@
135139
<click selector="{{StorefrontBundledSection.addToCart}}" stepKey="clickCustomize"/>
136140

137141
<!-- Select two products -->
138-
<click stepKey="selectProduct1" selector="{{StorefrontBundledSection.productCheckbox('1','1')}}"/>
139-
<click stepKey="selectProduct2" selector="{{StorefrontBundledSection.productCheckbox('2','1')}}"/>
142+
<click stepKey="selectProduct1" selector="{{StorefrontBundledSection.checkboxOptionLabel('$$createBundleOption1_1.sku$$','$$simpleProduct1.name$$')}}"/>
143+
<click stepKey="selectProduct2" selector="{{StorefrontBundledSection.checkboxOptionLabel('$$createBundleOption1_2.sku$$','$$simpleProduct3.name$$')}}"/>
140144

141145
<!--Click "Add to Cart" button-->
142146
<click selector="{{StorefrontBundleProductActionSection.addToCartButton}}" stepKey="clickAddBundleProductToCart"/>

0 commit comments

Comments
 (0)