|
15 | 15 | <stories value="Magento_LayeredNavigation"/>
|
16 | 16 | <title value="Admin should be able to uncheck Default Value checkbox for dependent field"/>
|
17 | 17 | <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"/> |
20 | 20 | </annotations>
|
| 21 | + |
21 | 22 | <before>
|
22 | 23 | <actionGroup ref="LoginActionGroup" stepKey="login"/>
|
23 | 24 | </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 | + |
41 | 26 | <after>
|
42 | 27 | <actionGroup ref="logout" stepKey="logout"/>
|
43 | 28 | </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"/> |
44 | 53 | </test>
|
45 | 54 | </tests>
|
0 commit comments