|
70 | 70 | <seeOptionIsSelected selector="{{CategoryDesignSection.LayoutDropdown}}" userInput="2 columns with right bar" stepKey="see2ColumnsSelected" />
|
71 | 71 | </test>
|
72 | 72 | <test name="AdminCategoryFormDisplaySettingsUIValidationTest">
|
73 |
| - <annotations> |
74 |
| - <features value="Catalog"/> |
75 |
| - <stories value="Default layout configuration MAGETWO-88793"/> |
76 |
| - <title value="Category should not be saved once layered navigation price step field is left empty"/> |
77 |
| - <description value="Once the Config setting is unchecked Category should not be saved with layered navigation price field left empty"/> |
78 |
| - <severity value="AVERAGE"/> |
79 |
| - <testCaseId value="MAGETWO-95797"/> |
80 |
| - <group value="category"/> |
81 |
| - </annotations> |
82 |
| - <before> |
83 |
| - <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
84 |
| - </before> |
85 |
| - <after> |
86 |
| - <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
87 |
| - </after> |
88 |
| - <amOnPage url="{{AdminCategoryPage.url}}" stepKey="navigateToCategoryPage"/> |
89 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad1"/> |
90 |
| - <click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickOnAddSubCategory"/> |
91 |
| - <fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{SimpleSubCategory.name}}" stepKey="enterCategoryName"/> |
92 |
| - <click selector="{{CategoryDisplaySettingsSection.DisplaySettingTab}}" stepKey="clickOnDisplaySettingsTab"/> |
93 |
| - <waitForElementVisible selector="{{CategoryDisplaySettingsSection.filterPriceRangeUseConfig}}" stepKey="wait"/> |
94 |
| - <scrollTo selector="{{CategoryDisplaySettingsSection.layeredNavigationPriceInput}}" stepKey="scrollToLayeredNavigationField"/> |
95 |
| - <uncheckOption selector="{{CategoryDisplaySettingsSection.filterPriceRangeUseConfig}}" stepKey="uncheckConfigSetting"/> |
96 |
| - <click selector="{{AdminCategoryMainActionsSection.SaveButton}}" stepKey="saveCategory"/> |
97 |
| - <see selector="{{AdminCategoryBasicFieldSection.FieldError('uid')}}" userInput="This is a required field." stepKey="seeErrorMessage"/> |
98 |
| - <!-- Verify that the Layered navigation price step field has the required indicator --> |
99 |
| - <comment userInput="Check if Layered navigation price field has required indicator icon" stepKey="comment" /> |
100 |
| - <executeJS function="{{CategoryDisplaySettingsSection.RequiredFieldIndicator('filter_price_range')}}" stepKey="getRequiredFieldIndicator"/> |
101 |
| - <assertEquals message="pass" stepKey="assertRequiredFieldIndicator1"> |
| 73 | + <annotations> |
| 74 | + <features value="Catalog"/> |
| 75 | + <stories value="Default layout configuration MAGETWO-88793"/> |
| 76 | + <title value="Category should not be saved once layered navigation price step field is left empty"/> |
| 77 | + <description value="Once the Config setting is unchecked Category should not be saved with layered navigation price field left empty"/> |
| 78 | + <severity value="AVERAGE"/> |
| 79 | + <testCaseId value="MAGETWO-95797"/> |
| 80 | + <group value="category"/> |
| 81 | + </annotations> |
| 82 | + <before> |
| 83 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 84 | + </before> |
| 85 | + <after> |
| 86 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 87 | + </after> |
| 88 | + <amOnPage url="{{AdminCategoryPage.url}}" stepKey="navigateToCategoryPage"/> |
| 89 | + <waitForPageLoad time="30" stepKey="waitForPageLoad1"/> |
| 90 | + <click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickOnAddSubCategory"/> |
| 91 | + <fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{SimpleSubCategory.name}}" stepKey="enterCategoryName"/> |
| 92 | + <click selector="{{CategoryDisplaySettingsSection.DisplaySettingTab}}" stepKey="clickOnDisplaySettingsTab"/> |
| 93 | + <waitForElementVisible selector="{{CategoryDisplaySettingsSection.filterPriceRangeUseConfig}}" stepKey="wait"/> |
| 94 | + <scrollTo selector="{{CategoryDisplaySettingsSection.layeredNavigationPriceInput}}" stepKey="scrollToLayeredNavigationField"/> |
| 95 | + <uncheckOption selector="{{CategoryDisplaySettingsSection.filterPriceRangeUseConfig}}" stepKey="uncheckConfigSetting"/> |
| 96 | + <click selector="{{AdminCategoryMainActionsSection.SaveButton}}" stepKey="saveCategory"/> |
| 97 | + <see selector="{{AdminCategoryBasicFieldSection.FieldError('uid')}}" userInput="This is a required field." stepKey="seeErrorMessage"/> |
| 98 | + <!-- Verify that the Layered navigation price step field has the required indicator --> |
| 99 | + <comment userInput="Check if Layered navigation price field has required indicator icon" stepKey="comment" /> |
| 100 | + <executeJS function="{{CategoryDisplaySettingsSection.RequiredFieldIndicator('filter_price_range')}}" stepKey="getRequiredFieldIndicator"/> |
| 101 | + <assertEquals message="pass" stepKey="assertRequiredFieldIndicator1"> |
102 | 102 | <actualResult type="variable">getRequiredFieldIndicator</actualResult>
|
103 | 103 | <expectedResult type="string">"*"</expectedResult>
|
104 | 104 | </assertEquals>
|
|
0 commit comments