Skip to content

Commit b9dec14

Browse files
authored
Merge pull request #177 from magento-pangolin/MC-12604
MC-12604
2 parents 21d41fa + d4f0c44 commit b9dec14

File tree

2 files changed

+29
-19
lines changed

2 files changed

+29
-19
lines changed

app/code/Magento/LayeredNavigation/Test/Mftf/Section/LayeredNavigationSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1111
<section name="LayeredNavigationSection">
1212
<element name="layeredNavigation" type="select" selector="#catalog_layered_navigation-head"/>
13+
<element name="layeredNavigationBlock" type="block" selector="#catalog_layered_navigation"/>
1314
<element name="CheckIfTabExpand" type="button" selector="#catalog_layered_navigation-head:not(.open)"/>
1415
<element name="NavigationStepCalculation" type="button" selector="#catalog_layered_navigation_price_range_calculation"/>
1516
<element name="NavigationStepCalculationSystemValue" type="button" selector="#catalog_layered_navigation_price_range_calculation_inherit"/>

app/code/Magento/LayeredNavigation/Test/Mftf/Test/AdminSpecifyLayerNavigationConfigurationTest.xml

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,40 @@
1515
<stories value="Magento_LayeredNavigation"/>
1616
<title value="Admin should be able to uncheck Default Value checkbox for dependent field"/>
1717
<description value="Admin should be able to uncheck Default Value checkbox for dependent field"/>
18-
<severity value="AVERAGE"/>
19-
<testCaseId value="MAGETWO-94872"/>
18+
<severity value="CRITICAL"/>
19+
<testCaseId value="MC-12604"/>
2020
</annotations>
21+
2122
<before>
2223
<actionGroup ref="LoginActionGroup" stepKey="login"/>
2324
</before>
24-
<amOnPage url="{{CatalogConfigPage.url}}" stepKey="navigateToConfigurationPage" />
25-
<waitForPageLoad stepKey="wait1"/>
26-
<conditionalClick stepKey="expandLayeredNavigationTab" selector="{{LayeredNavigationSection.layeredNavigation}}" dependentSelector="{{LayeredNavigationSection.CheckIfTabExpand}}" visible="true" />
27-
<waitForElementVisible selector="{{LayeredNavigationSection.NavigationStepCalculationSystemValue}}" stepKey="waitForUseSystemValueVisible"/>
28-
<uncheckOption selector="{{LayeredNavigationSection.NavigationStepCalculationSystemValue}}" stepKey="uncheckUseSystemValue"/>
29-
<selectOption selector="{{LayeredNavigationSection.NavigationStepCalculation}}" userInput="Manual" stepKey="selectOption1"/>
30-
<uncheckOption selector="{{LayeredNavigationSection.PriceNavigationStepSystemValue}}" stepKey="uncheckUseSystemValue2"/>
31-
<fillField selector="{{LayeredNavigationSection.PriceNavigationStep}}" userInput="102" stepKey="fillAdmin1"/>
32-
<click selector="{{ContentManagementSection.Save}}" stepKey="saveConfig" />
33-
<waitForPageLoad stepKey="waitForSavingSystemConfiguration"/>
34-
<waitForElementVisible selector="#catalog_layered_navigation" stepKey="waitForLayeredNav" />
35-
<scrollTo selector="#catalog_layered_navigation" x="0" y="-80" stepKey="scrollToLayeredNavigation" />
36-
<seeInField stepKey="seeThatValueWasSaved" selector="{{LayeredNavigationSection.PriceNavigationStep}}" userInput="102"/>
37-
<checkOption selector="{{LayeredNavigationSection.NavigationStepCalculationSystemValue}}" stepKey="setToDefaultValue1"/>
38-
<checkOption selector="{{LayeredNavigationSection.PriceNavigationStepSystemValue}}" stepKey="setToDefaultValue2"/>
39-
<click selector="{{ContentManagementSection.Save}}" stepKey="saveConfig2" />
40-
<waitForPageLoad stepKey="waitForSavingSystemConfiguration2"/>
25+
4126
<after>
4227
<actionGroup ref="logout" stepKey="logout"/>
4328
</after>
29+
30+
<!-- Configure Layered Navigation in Stores -> Configuration -> Catalog -> Layered Navigation -->
31+
<amOnPage url="{{CatalogConfigPage.url}}" stepKey="navigateToConfigurationPage"/>
32+
<waitForPageLoad stepKey="waitForPageLoad"/>
33+
<conditionalClick selector="{{LayeredNavigationSection.layeredNavigation}}" dependentSelector="{{LayeredNavigationSection.CheckIfTabExpand}}" visible="true" stepKey="expandLayeredNavigationTab"/>
34+
<waitForElementVisible selector="{{LayeredNavigationSection.NavigationStepCalculationSystemValue}}" stepKey="waitForUseSystemValueVisible"/>
35+
36+
<!-- Display Product Count = yes; Price Navigation Step Calculation = Manual; Default Price Navigation Step = 102 -->
37+
<uncheckOption selector="{{LayeredNavigationSection.NavigationStepCalculationSystemValue}}" stepKey="uncheckUseSystemValue"/>
38+
<selectOption selector="{{LayeredNavigationSection.NavigationStepCalculation}}" userInput="Manual" stepKey="selectOption"/>
39+
<uncheckOption selector="{{LayeredNavigationSection.PriceNavigationStepSystemValue}}" stepKey="uncheckUseStepSystemValue"/>
40+
<fillField selector="{{LayeredNavigationSection.PriceNavigationStep}}" userInput="102" stepKey="fillPriceNavStep"/>
41+
<click selector="{{ContentManagementSection.Save}}" stepKey="saveConfig" />
42+
<waitForPageLoad stepKey="waitForSavingSystemConfiguration"/>
43+
44+
<waitForElementVisible selector="{{LayeredNavigationSection.layeredNavigationBlock}}" stepKey="waitForLayeredNav"/>
45+
<scrollTo selector="{{LayeredNavigationSection.layeredNavigationBlock}}" x="0" y="-80" stepKey="scrollToLayeredNavigation"/>
46+
<seeInField userInput="102" selector="{{LayeredNavigationSection.PriceNavigationStep}}" stepKey="seeThatValueWasSaved"/>
47+
48+
<!-- It is possible uncheck Use Default checkbox -->
49+
<checkOption selector="{{LayeredNavigationSection.NavigationStepCalculationSystemValue}}" stepKey="setStepCalculationToDefaultValue"/>
50+
<checkOption selector="{{LayeredNavigationSection.PriceNavigationStepSystemValue}}" stepKey="setPriceNavToDefaultValue"/>
51+
<click selector="{{ContentManagementSection.Save}}" stepKey="saveConfiguration" />
52+
<waitForPageLoad stepKey="waitForSaveSystemConfiguration"/>
4453
</test>
4554
</tests>

0 commit comments

Comments
 (0)