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