|
42 | 42 |
|
43 | 43 | <!-- Open 3rd Level category -->
|
44 | 44 | <actionGroup ref="AdminExpandCategoryTreeActionGroup" stepKey="clickOnExpandTree"/>
|
45 |
| - <click selector="{{AdminCategorySidebarTreeSection.categoryInTree($$createThreeLevelNestedCategories.name$$)}}" stepKey="selectCategory"/> |
46 |
| - <waitForPageLoad stepKey="waitForPageToLoad"/> |
| 45 | + <actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCategory"> |
| 46 | + <argument name="category" value="$$createThreeLevelNestedCategories$$"/> |
| 47 | + </actionGroup> |
| 48 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageToLoad"/> |
47 | 49 |
|
48 | 50 | <!--Update category UrlKey and check permanent redirect for old URL -->
|
49 |
| - <scrollTo selector="{{AdminCategorySEOSection.SectionHeader}}" x="0" y="-80" stepKey="scrollToSearchEngineOptimization1"/> |
50 |
| - <click selector="{{AdminCategorySEOSection.SectionHeader}}" stepKey="selectSearchEngineOptimization"/> |
51 |
| - <waitForPageLoad stepKey="waitForPageToLoad1"/> |
52 |
| - <fillField selector="{{AdminCategorySEOSection.UrlKeyInput}}" userInput="updateredirecturl" stepKey="updateUrlKey"/> |
53 |
| - <checkOption selector="{{AdminCategorySEOSection.UrlKeyRedirectCheckbox}}" stepKey="checkPermanentRedirectCheckBox"/> |
54 |
| - <click selector="{{AdminCategorySEOSection.SectionHeader}}" stepKey="selectSearchEngineOptimization1"/> |
55 |
| - <actionGroup ref="AdminSaveCategoryActionGroup" stepKey="saveUpdatedCategory"/> |
56 |
| - <seeElement selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="seeSuccessMessage"/> |
| 51 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="scrollToSearchEngineOptimization1"/> |
| 52 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectSearchEngineOptimization"/> |
| 53 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageToLoad1"/> |
| 54 | + <actionGroup ref="AdminSelectPermanentRedirectCheckBoxActionGroup" stepKey="updateUrlKey"> |
| 55 | + <argument name="value" value="updateredirecturl"/> |
| 56 | + </actionGroup> |
| 57 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="checkPermanentRedirectCheckBox"/> |
| 58 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectSearchEngineOptimization1"/> |
| 59 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="saveUpdatedCategory"/> |
| 60 | + <actionGroup ref="AssertAdminCategorySaveSuccessMessageActionGroup" stepKey="seeSuccessMessage"/> |
57 | 61 |
|
58 | 62 | <!-- Get Category ID -->
|
59 | 63 | <grabFromCurrentUrl stepKey="categoryId" regex="#\/([0-9]*)?\/$#"/>
|
60 | 64 |
|
61 |
| - <!-- Open Url Rewrite Page --> |
62 |
| - <amOnPage url="{{AdminUrlRewriteIndexPage.url}}" stepKey="openUrlRewriteIndexPage"/> |
63 |
| - <waitForPageLoad stepKey="waitForUrlRewritePage"/> |
64 |
| - |
65 |
| - <!-- Verify third level category's Redirect Path, Target Path and Redirect Type after the URL update --> |
66 |
| - <conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" |
67 |
| - dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" |
68 |
| - visible="true" |
69 |
| - stepKey="clickOnResetButton"/> |
70 |
| - <waitForPageLoad stepKey="waitForPageToLoad2"/> |
71 |
| - <click selector="{{AdminDataGridHeaderSection.filters}}" stepKey="openUrlRewriteGridFilters"/> |
72 |
| - <fillField selector="{{AdminDataGridHeaderSection.filterFieldInput('request_path')}}" userInput="updateredirecturl" stepKey="fillUpdatedURLInRedirectPathFilter"/> |
73 |
| - <click selector="{{AdminDataGridHeaderSection.applyFilters}}" stepKey="clickOrderApplyFilters"/> |
74 |
| - <waitForPageLoad stepKey="waitForPageToLoad3"/> |
75 |
| - <see selector="{{AdminUrlRewriteIndexSection.gridCellByColumnRowNumber('1', 'Redirect Type')}}" userInput="No" stepKey="seeTheRedirectType"/> |
76 |
| - <see selector="{{AdminUrlRewriteIndexSection.gridCellByColumnRowNumber('1', 'Target Path')}}" userInput="catalog/category/view/id/{$categoryId}" stepKey="seeTheTargetPath"/> |
77 |
| - <see selector="{{AdminUrlRewriteIndexSection.gridCellByColumnRowNumber('1', 'Request Path')}}" userInput="$$createDefaultCategory.name$$/$$createTwoLevelNestedCategories.name$$/updateredirecturl.html" stepKey="seeTheRedirectPath"/> |
| 65 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="openUrlRewriteIndexPage"/> |
| 66 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForUrlRewritePage"/> |
| 67 | + <!-- Verify third level category's Redirect Path, Target Path and Redirect Type for updated URL--> |
| 68 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickOnResetButton"/> |
| 69 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageToLoad2"/> |
| 70 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="openUrlRewriteGridFilters"/> |
| 71 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillUpdatedURLInRedirectPathFilter"/> |
| 72 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickOrderApplyFilters"/> |
| 73 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageToLoad3"/> |
| 74 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeTheRedirectType"/> |
| 75 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeTheTargetPath"/> |
| 76 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeTheRedirectPath"/> |
| 77 | + <actionGroup ref="AdminSearchByRequestPathActionGroup" stepKey="searchByRequestPath"> |
| 78 | + <argument name="redirectPath" value="$$createDefaultCategory.name$$/$$createTwoLevelNestedCategories.name$$/updateredirecturl.html" /> |
| 79 | + <argument name="redirectType" value="No" /> |
| 80 | + <argument name="targetPath" value="catalog/category/view/id/{$categoryId}"/> |
| 81 | + </actionGroup> |
78 | 82 |
|
79 | 83 | <!-- Verify third level category's Redirect path, Target Path and Redirect type for old URL -->
|
80 | 84 | <actionGroup ref="AdminClearGridFiltersActionGroup" stepKey="clickOnResetButton1"/>
|
81 | 85 | <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageToLoad4"/>
|
82 |
| - <click selector="{{AdminDataGridHeaderSection.filters}}" stepKey="openUrlRewriteGridFilters1"/> |
83 |
| - <fillField selector="{{AdminDataGridHeaderSection.filterFieldInput('request_path')}}" userInput="$$createThreeLevelNestedCategories.name$$" stepKey="fillOldUrlInRedirectPathFilter"/> |
84 |
| - <click selector="{{AdminDataGridHeaderSection.applyFilters}}" stepKey="clickOrderApplyFilters1"/> |
85 |
| - <waitForPageLoad stepKey="waitForPageToLoad5"/> |
86 |
| - <see selector="{{AdminUrlRewriteIndexSection.gridCellByColumnRowNumber('1', 'Request Path')}}" userInput="$$createDefaultCategory.name$$/$$createTwoLevelNestedCategories.name$$/$$createThreeLevelNestedCategories.name$$.html" stepKey="seeTheRedirectPathForOldUrl"/> |
87 |
| - <see selector="{{AdminUrlRewriteIndexSection.gridCellByColumnRowNumber('1', 'Target Path')}}" userInput="$$createDefaultCategory.name$$/$$createTwoLevelNestedCategories.name$$/updateredirecturl.html" stepKey="seeTheTargetPathForOldUrl"/> |
88 |
| - <see selector="{{AdminUrlRewriteIndexSection.gridCellByColumnRowNumber('1', 'Redirect Type')}}" userInput="Permanent (301)" stepKey="seeTheRedirectTypeForOldUrl"/> |
| 86 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="openUrlRewriteGridFilters1"/> |
| 87 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillOldUrlInRedirectPathFilter"/> |
| 88 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickOrderApplyFilters1"/> |
| 89 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageToLoad5"/> |
| 90 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeTheRedirectPathForOldUrl"/> |
| 91 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeTheTargetPathForOldUrl"/> |
| 92 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeTheRedirectTypeForOldUrl"/> |
| 93 | + <actionGroup ref="AdminSearchByRequestPathActionGroup" stepKey="searchByRequestPathForOldUrl"> |
| 94 | + <argument name="redirectPath" value="$$createDefaultCategory.name$$/$$createTwoLevelNestedCategories.name$$/$$createThreeLevelNestedCategories.name$$.html" /> |
| 95 | + <argument name="redirectType" value="Permanent (301)" /> |
| 96 | + <argument name="targetPath" value="$$createDefaultCategory.name$$/$$createTwoLevelNestedCategories.name$$/updateredirecturl.html"/> |
| 97 | + </actionGroup> |
89 | 98 | </test>
|
90 | 99 | </tests>
|
0 commit comments