|
47 | 47 | <actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearFiltersIfSet"/>
|
48 | 48 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
49 | 49 | </after>
|
| 50 | + <!--Change category name and URL key for EN Store View--> |
50 | 51 | <actionGroup ref="SwitchCategoryStoreViewActionGroup" stepKey="switchToStoreViewEn">
|
51 | 52 | <argument name="Store" value="customStoreENNotUnique.name"/>
|
52 | 53 | <argument name="CatName" value="$$createCategory.name$$"/>
|
53 | 54 | </actionGroup>
|
54 |
| - <uncheckOption selector="{{AdminCategoryBasicFieldSection.categoryNameUseDefault}}" stepKey="uncheckUseDefaultValueENStoreView"/> |
55 |
| - <fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="category-english" stepKey="changeNameField"/> |
56 |
| - <click selector="{{AdminCategorySEOSection.SectionHeader}}" stepKey="clickOnSectionHeader"/> |
| 55 | + <actionGroup ref="AdminChangeCategoryNameOnStoreViewLevelActionGroup" stepKey="changeCategoryNameForENStoreView"> |
| 56 | + <argument name="categoryName" value="categoryEN"/> |
| 57 | + </actionGroup> |
57 | 58 | <actionGroup ref="ChangeSeoUrlKeyForSubCategoryActionGroup" stepKey="changeSeoUrlKeyENStoreView">
|
58 | 59 | <argument name="value" value="category-english"/>
|
59 | 60 | </actionGroup>
|
| 61 | + |
| 62 | + <!--Change category name and URL key for NL Store View--> |
60 | 63 | <actionGroup ref="SwitchCategoryStoreViewActionGroup" stepKey="switchToStoreViewNl">
|
61 | 64 | <argument name="Store" value="customStoreNLNotUnique.name"/>
|
62 | 65 | <argument name="CatName" value="$$createCategory.name$$"/>
|
63 | 66 | </actionGroup>
|
64 |
| - <uncheckOption selector="{{AdminCategoryBasicFieldSection.categoryNameUseDefault}}" stepKey="uncheckUseDefaultValue1"/> |
65 |
| - <fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="category-dutch" stepKey="changeNameFieldNLStoreView"/> |
66 |
| - <click selector="{{AdminCategorySEOSection.SectionHeader}}" stepKey="clickOnSectionHeader2"/> |
| 67 | + <actionGroup ref="AdminChangeCategoryNameOnStoreViewLevelActionGroup" stepKey="changeCategoryNameForNLStoreView"> |
| 68 | + <argument name="categoryName" value="categoryNL"/> |
| 69 | + </actionGroup> |
67 | 70 | <actionGroup ref="ChangeSeoUrlKeyForSubCategoryActionGroup" stepKey="changeSeoUrlKeyNLStoreView">
|
68 | 71 | <argument name="value" value="category-dutch"/>
|
69 | 72 | </actionGroup>
|
70 |
| - <amOnPage url="{{AdminImportIndexPage.url}}" stepKey="navigateToSystemImport"/> |
71 |
| - <selectOption selector="{{AdminImportMainSection.entityType}}" userInput="Products" stepKey="selectProductsOption"/> |
72 |
| - <waitForElementVisible selector="{{AdminImportMainSection.importBehavior}}" stepKey="waitForImportBehaviorElementVisible"/> |
73 |
| - <selectOption selector="{{AdminImportMainSection.importBehavior}}" userInput="Add/Update" stepKey="selectAddUpdateOption"/> |
74 |
| - <attachFile selector="{{AdminImportMainSection.selectFileToImport}}" userInput="import_updated.csv" stepKey="attachFileForImport"/> |
75 |
| - <click selector="{{AdminImportHeaderSection.checkDataButton}}" stepKey="clickCheckDataButton"/> |
76 |
| - <see selector="{{AdminImportValidationMessagesSection.notice}}" userInput="Checked rows: 3, checked entities: 1, invalid rows: 0, total errors: 0" stepKey="assertNotice"/> |
77 |
| - <see selector="{{AdminImportValidationMessagesSection.success}}" userInput="File is valid! To start import process press "Import" button" stepKey="assertSuccessMessage"/> |
78 |
| - <click selector="{{AdminImportMainSection.importButton}}" stepKey="clickImportButton"/> |
79 |
| - <see selector="{{AdminImportValidationMessagesSection.success}}" userInput="Import successfully done" stepKey="assertSuccessMessage1"/> |
80 |
| - <see selector="{{AdminImportValidationMessagesSection.notice}}" userInput="Created: 1, Updated: 0, Deleted: 0" stepKey="assertNotice1"/> |
81 |
| - <actionGroup ref="SearchForProductOnBackendByNameActionGroup" stepKey="searchForProductOnBackend"> |
82 |
| - <argument name="productName" value="productformagetwo68980"/> |
83 |
| - </actionGroup> |
84 |
| - <click selector="{{AdminProductGridSection.productRowBySku('productformagetwo68980')}}" stepKey="clickOnProductRow"/> |
| 73 | + |
| 74 | + <!-- Import products with add/update behavior --> |
| 75 | + <actionGroup ref="AdminImportProductsWithCheckValidationResultActionGroup" stepKey="importProduct"> |
| 76 | + <argument name="behavior" value="Add/Update"/> |
| 77 | + <argument name="importFile" value="import_updated.csv"/> |
| 78 | + <argument name="importNoticeMessage" value="Created: 1, Updated: 0, Deleted: 0"/> |
| 79 | + <argument name="validationNoticeMessage" value="Checked rows: 3, checked entities: 1, invalid rows: 0, total errors: 0"/> |
| 80 | + </actionGroup> |
| 81 | + |
| 82 | + <!--Filter Product in product page and get the Product ID --> |
| 83 | + <actionGroup ref="FilterAndSelectProductActionGroup" stepKey="filterProduct"> |
| 84 | + <argument name="productSku" value="productformagetwo68980"/> |
| 85 | + </actionGroup> |
85 | 86 | <grabFromCurrentUrl regex="~/id/(\d+)/~" stepKey="grabProductIdFromUrl"/>
|
86 |
| - <amOnPage url="{{AdminUrlRewriteIndexPage.url}}" stepKey="goToUrlRewritesIndexPage"/> |
87 | 87 |
|
88 |
| - <click selector="{{AdminDataGridHeaderSection.filters}}" stepKey="openUrlRewriteGridFilters"/> |
89 |
| - <fillField selector="{{AdminDataGridHeaderSection.filterFieldInput('request_path')}}" userInput="category-english.html" stepKey="inputCategoryUrlForENStoreView"/> |
90 |
| - <click selector="{{AdminDataGridHeaderSection.applyFilters}}" stepKey="clickOrderApplyFilters"/> |
91 |
| - <waitForPageLoad stepKey="waitForPageToLoad"/> |
92 |
| - <seeElement selector="{{AdminUrlRewriteIndexSection.gridCellByColumnValue('Request Path', 'category-english.html')}}" stepKey="seeUrlInRequestPathColumn"/> |
93 |
| - <seeElement selector="{{AdminUrlRewriteIndexSection.gridCellByColumnValue('Target Path', catalog/category/view/id/$$createCategory.id$$)}}" stepKey="seeUrlInTargetPathColumn"/> |
| 88 | + <!--Open Marketing - SEO & Search - URL Rewrites--> |
| 89 | + <actionGroup ref="AdminSearchUrlRewriteByRequestPathActionGroup" stepKey="searchingCategoryUrlRewriteForENStoreView"> |
| 90 | + <argument name="requestPath" value="category-english.html"/> |
| 91 | + </actionGroup> |
| 92 | + <actionGroup ref="AssertAdminRequestPathInUrlRewriteGrigActionGroup" stepKey="seeCategoryUrlInRequestPathColumnForENStoreView"> |
| 93 | + <argument name="requestPath" value="category-english.html"/> |
| 94 | + </actionGroup> |
| 95 | + <actionGroup ref="AssertAdminTargetPathInUrlRewriteGrigActionGroup" stepKey="seeCategoryUrlInTargetPathColumnForENStoreView"> |
| 96 | + <argument name="targetPath" value="catalog/category/view/id/$$createCategory.id$$"/> |
| 97 | + </actionGroup> |
94 | 98 |
|
95 |
| - <click selector="{{AdminDataGridHeaderSection.filters}}" stepKey="openUrlRewriteGridFilters1"/> |
96 |
| - <fillField selector="{{AdminDataGridHeaderSection.filterFieldInput('request_path')}}" userInput="category-dutch.html" stepKey="inputCategoryUrlForNLStoreView"/> |
97 |
| - <click selector="{{AdminDataGridHeaderSection.applyFilters}}" stepKey="clickOrderApplyFilters1"/> |
98 |
| - <waitForPageLoad stepKey="waitForPageToLoad1"/> |
99 |
| - <seeElement selector="{{AdminUrlRewriteIndexSection.gridCellByColumnValue('Request Path', 'category-dutch.html')}}" stepKey="seeUrlInRequestPathColumn1"/> |
100 |
| - <seeElement selector="{{AdminUrlRewriteIndexSection.gridCellByColumnValue('Target Path', catalog/category/view/id/$$createCategory.id$$)}}" stepKey="seeUrlInTargetPathColumn1"/> |
| 99 | + <actionGroup ref="AdminSearchUrlRewriteByRequestPathActionGroup" stepKey="searchingCategoryUrlRewriteForNLStoreView"> |
| 100 | + <argument name="requestPath" value="category-dutch.html"/> |
| 101 | + </actionGroup> |
| 102 | + <actionGroup ref="AssertAdminRequestPathInUrlRewriteGrigActionGroup" stepKey="seeCategoryUrlInRequestPathColumnForNLStoreView"> |
| 103 | + <argument name="requestPath" value="category-dutch.html"/> |
| 104 | + </actionGroup> |
| 105 | + <actionGroup ref="AssertAdminTargetPathInUrlRewriteGrigActionGroup" stepKey="seeCategoryUrlInTargetPathColumnForNLStoreView"> |
| 106 | + <argument name="targetPath" value="catalog/category/view/id/$$createCategory.id$$"/> |
| 107 | + </actionGroup> |
101 | 108 |
|
102 |
| - <click selector="{{AdminDataGridHeaderSection.filters}}" stepKey="openUrlRewriteGridFilters2"/> |
103 |
| - <fillField selector="{{AdminDataGridHeaderSection.filterFieldInput('request_path')}}" userInput="productformagetwo68980-english.html" stepKey="inputProductUrlForENStoreView"/> |
104 |
| - <click selector="{{AdminDataGridHeaderSection.applyFilters}}" stepKey="clickOrderApplyFilters2"/> |
105 |
| - <waitForPageLoad stepKey="waitForPageToLoad2"/> |
106 |
| - <seeElement selector="{{AdminUrlRewriteIndexSection.gridCellByColumnValue('Request Path', 'productformagetwo68980-english.html')}}" stepKey="seeUrlInRequestPathColumn2"/> |
107 |
| - <seeElement selector="{{AdminUrlRewriteIndexSection.gridCellByColumnValue('Target Path', 'catalog/product/view/id/$grabProductIdFromUrl')}}" stepKey="seeUrlInTargetPathColumn2"/> |
| 109 | + <actionGroup ref="AdminSearchUrlRewriteByRequestPathActionGroup" stepKey="searchingProductUrlRewriteForENStoreView"> |
| 110 | + <argument name="requestPath" value="productformagetwo68980-english.html"/> |
| 111 | + </actionGroup> |
| 112 | + <actionGroup ref="AssertAdminRequestPathInUrlRewriteGrigActionGroup" stepKey="seeProductUrlInRequestPathColumnForENStoreView"> |
| 113 | + <argument name="requestPath" value="productformagetwo68980-english.html"/> |
| 114 | + </actionGroup> |
| 115 | + <actionGroup ref="AssertAdminTargetPathInUrlRewriteGrigActionGroup" stepKey="seeProductUrlInTargetPathColumnForENStoreView"> |
| 116 | + <argument name="targetPath" value="catalog/product/view/id/$grabProductIdFromUrl"/> |
| 117 | + </actionGroup> |
108 | 118 |
|
109 |
| - <click selector="{{AdminDataGridHeaderSection.filters}}" stepKey="openUrlRewriteGridFilters3"/> |
110 |
| - <fillField selector="{{AdminDataGridHeaderSection.filterFieldInput('request_path')}}" userInput="productformagetwo68980-dutch.html" stepKey="inputProductUrlForENStoreView1"/> |
111 |
| - <click selector="{{AdminDataGridHeaderSection.applyFilters}}" stepKey="clickOrderApplyFilters3"/> |
112 |
| - <waitForPageLoad stepKey="waitForPageToLoad3"/> |
113 |
| - <seeElement selector="{{AdminUrlRewriteIndexSection.gridCellByColumnValue('Request Path', 'productformagetwo68980-dutch.html')}}" stepKey="seeUrlInRequestPathColumn3"/> |
114 |
| - <seeElement selector="{{AdminUrlRewriteIndexSection.gridCellByColumnValue('Target Path', 'catalog/product/view/id/$grabProductIdFromUrl')}}" stepKey="seeUrlInTargetPathColumn3"/> |
| 119 | + <actionGroup ref="AdminSearchUrlRewriteByRequestPathActionGroup" stepKey="searchingProductUrlRewriteForNLStoreView"> |
| 120 | + <argument name="requestPath" value="productformagetwo68980-dutch.html"/> |
| 121 | + </actionGroup> |
| 122 | + <actionGroup ref="AssertAdminRequestPathInUrlRewriteGrigActionGroup" stepKey="seeProductUrlInRequestPathColumnForNLStoreView"> |
| 123 | + <argument name="requestPath" value="productformagetwo68980-dutch.html"/> |
| 124 | + </actionGroup> |
| 125 | + <actionGroup ref="AssertAdminTargetPathInUrlRewriteGrigActionGroup" stepKey="seeProductUrlInTargetPathColumnForNLStoreView"> |
| 126 | + <argument name="targetPath" value="catalog/product/view/id/$grabProductIdFromUrl"/> |
| 127 | + </actionGroup> |
115 | 128 |
|
116 |
| - <click selector="{{AdminDataGridHeaderSection.filters}}" stepKey="openUrlRewriteGridFilters4"/> |
117 |
| - <fillField selector="{{AdminDataGridHeaderSection.filterFieldInput('request_path')}}" userInput="category-english/productformagetwo68980-english.html" stepKey="inputProductUrlForENStoreView2"/> |
118 |
| - <click selector="{{AdminDataGridHeaderSection.applyFilters}}" stepKey="clickOrderApplyFilters4"/> |
119 |
| - <waitForPageLoad stepKey="waitForPageToLoad4"/> |
120 |
| - <seeElement selector="{{AdminUrlRewriteIndexSection.gridCellByColumnValue('Request Path', 'category-english/productformagetwo68980-english.html')}}" stepKey="seeUrlInRequestPathColumn4"/> |
121 |
| - <seeElement selector="{{AdminUrlRewriteIndexSection.gridCellByColumnValue('Target Path', catalog/product/view/id/$grabProductIdFromUrl/category/$$createCategory.id$$)}}" stepKey="seeUrlInTargetPathColumn4"/> |
| 129 | + <actionGroup ref="AdminSearchUrlRewriteByRequestPathActionGroup" stepKey="searchingUrlRewriteForENStoreView"> |
| 130 | + <argument name="requestPath" value="category-english/productformagetwo68980-english.html"/> |
| 131 | + </actionGroup> |
| 132 | + <actionGroup ref="AssertAdminRequestPathInUrlRewriteGrigActionGroup" stepKey="seeUrlInRequestPathColumnForENStoreView"> |
| 133 | + <argument name="requestPath" value="category-english/productformagetwo68980-english.html"/> |
| 134 | + </actionGroup> |
| 135 | + <actionGroup ref="AssertAdminTargetPathInUrlRewriteGrigActionGroup" stepKey="seeUrlInTargetPathColumnForENStoreView"> |
| 136 | + <argument name="targetPath" value="catalog/product/view/id/$grabProductIdFromUrl/category/$$createCategory.id$$"/> |
| 137 | + </actionGroup> |
122 | 138 |
|
123 |
| - <click selector="{{AdminDataGridHeaderSection.filters}}" stepKey="openUrlRewriteGridFilters5"/> |
124 |
| - <fillField selector="{{AdminDataGridHeaderSection.filterFieldInput('request_path')}}" userInput="category-dutch/productformagetwo68980-dutch.html" stepKey="inputProductUrlForENStoreView3"/> |
125 |
| - <click selector="{{AdminDataGridHeaderSection.applyFilters}}" stepKey="clickOrderApplyFilters5"/> |
126 |
| - <waitForPageLoad stepKey="waitForPageToLoad5"/> |
127 |
| - <seeElement selector="{{AdminUrlRewriteIndexSection.gridCellByColumnValue('Request Path', 'category-dutch/productformagetwo68980-dutch.html')}}" stepKey="seeUrlInRequestPathColumn5"/> |
128 |
| - <seeElement selector="{{AdminUrlRewriteIndexSection.gridCellByColumnValue('Target Path', catalog/product/view/id/$grabProductIdFromUrl/category/$$createCategory.id$$)}}" stepKey="seeUrlInTargetPathColumn5"/> |
| 139 | + <actionGroup ref="AdminSearchUrlRewriteByRequestPathActionGroup" stepKey="searchingUrlRewriteForNLStoreView"> |
| 140 | + <argument name="requestPath" value="category-dutch/productformagetwo68980-dutch.html"/> |
| 141 | + </actionGroup> |
| 142 | + <actionGroup ref="AssertAdminRequestPathInUrlRewriteGrigActionGroup" stepKey="seeUrlInRequestPathColumnForNLStoreView"> |
| 143 | + <argument name="requestPath" value="category-dutch/productformagetwo68980-dutch.html"/> |
| 144 | + </actionGroup> |
| 145 | + <actionGroup ref="AssertAdminTargetPathInUrlRewriteGrigActionGroup" stepKey="seeUrlInTargetPathColumnForNLStoreView"> |
| 146 | + <argument name="targetPath" value="catalog/product/view/id/$grabProductIdFromUrl/category/$$createCategory.id$$"/> |
| 147 | + </actionGroup> |
129 | 148 | </test>
|
130 | 149 | </tests>
|
0 commit comments