Skip to content

Commit 17715d0

Browse files
author
Lukasz Borowiec
committed
#422: Adding Conditions Combination to Conditions Filter Will Cause Server Errors, Condition Filter to Break, & Infinite Loading Mask -Added Mftf for ConditionsCombinationToProductsAction
1 parent de9a09d commit 17715d0

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10+
<actionGroup name="AddConditionsCombinationToProducts">
11+
<arguments>
12+
<argument name="index" defaultValue="1" type="string"/>
13+
</arguments>
14+
<comment userInput="AddConditionsCombinationToProducts" stepKey="comment"/>
15+
<waitForElementVisible selector="{{ProductsContentTypeForm.conditionsList}}" stepKey="waitForConditionsToLoad"/>
16+
<waitForElementVisible selector="{{ProductsContentTypeForm.conditionsListAddButton(index)}}" stepKey="waitForAddConditionButton"/>
17+
<click selector="{{ProductsContentTypeForm.conditionsListAddButton(index)}}" stepKey="clickAddConditionButton"/>
18+
<selectOption selector="{{ProductsContentTypeForm.conditionsListAddTypeSelect(index)}}" userInput="{{PageBuilderProductsConditionCombination.value}}" stepKey="selectCombinationOption"/>
19+
<waitForPageLoad stepKey="waitForConditionsCombinationTemplateToLoad"/>
20+
</actionGroup>
21+
</actionGroups>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
10+
<test name="ProductConditionsAddDoubleConditionsCombinationTest">
11+
<annotations>
12+
<features value="PageBuilder"/>
13+
<stories value="Products"/>
14+
<title value="Product conditions rule with a combination of double conditions"/>
15+
<description value="As a Content Manager I want set condition filter in Conditions Combination on a Product content type"/>
16+
<severity value="AVERAGE"/>
17+
<useCaseId value=""/>
18+
<testCaseId value=""/>
19+
<group value="pagebuilder"/>
20+
<group value="pagebuilder-products"/>
21+
</annotations>
22+
<before>
23+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
24+
<actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/>
25+
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
26+
</before>
27+
<after>
28+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
29+
</after>
30+
<actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle">
31+
<argument name="contentType" value="PageBuilderProductsContentType"/>
32+
</actionGroup>
33+
<actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandPageBuilderPanelMenuSection">
34+
<argument name="contentType" value="PageBuilderProductsContentType"/>
35+
</actionGroup>
36+
<actionGroup ref="dragContentTypeToStage" stepKey="dragProductsOntoStage">
37+
<argument name="contentType" value="PageBuilderProductsContentType"/>
38+
</actionGroup>
39+
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditAfterDrop">
40+
<argument name="contentType" value="PageBuilderProductsContentType"/>
41+
</actionGroup>
42+
<actionGroup ref="chooseVisualSelectOption" stepKey="chooseSelectProductsBy">
43+
<argument name="property" value="PageBuilderProductsSelectProductsByCondition"/>
44+
</actionGroup>
45+
<actionGroup ref="AddConditionsCombinationToProducts" stepKey="addProductsConditionCombination"/>
46+
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
47+
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditAfterDropAgain">
48+
<argument name="contentType" value="PageBuilderProductsContentType"/>
49+
</actionGroup>
50+
<!-- Validate product conditions -->
51+
<comment userInput="Validate product conditions" stepKey="productConditionsValidateStage"/>
52+
<dontSeeJsError stepKey="doNotSeeAnyJSErrorsOnStage"/>
53+
</test>
54+
</tests>

0 commit comments

Comments
 (0)