|
8 | 8 |
|
9 | 9 | <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
10 | 10 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
|
11 |
| - <!-- Update Product Name and Description attribute --> |
| 11 | + <!--Update Product Name and Description attribute--> |
12 | 12 | <actionGroup name="AdminMassUpdateProductQtyAndStockStatusActionGroup">
|
13 | 13 | <arguments>
|
14 | 14 | <argument name="attributes"/>
|
| 15 | + <argument name="product"/> |
15 | 16 | </arguments>
|
| 17 | + <!--Filter product in product grid--> |
| 18 | + <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="visitAdminProductPageFirstTime"/> |
| 19 | + <waitForPageLoad stepKey="waitForProductGridPageLoad"/> |
| 20 | + <conditionalClick selector="{{AdminProductGridFilterSection.clearFilters}}" dependentSelector="{{AdminProductGridFilterSection.clearFilters}}" visible="true" stepKey="clickClearFiltersInitial"/> |
| 21 | + <click selector="{{AdminProductGridFilterSection.filters}}" stepKey="openProductFilters"/> |
| 22 | + <fillField selector="{{AdminProductGridFilterSection.nameFilter}}" userInput="{{product.name}}" stepKey="fillProductNameFilter"/> |
| 23 | + <fillField selector="{{AdminProductGridFilterSection.skuFilter}}" userInput="{{product.sku}}" stepKey="fillProductSkuFilter"/> |
| 24 | + <selectOption selector="{{AdminProductGridFilterSection.typeFilter}}" userInput="{{product.type_id}}" stepKey="selectionProductType"/> |
| 25 | + <click selector="{{AdminProductGridFilterSection.applyFilters}}" stepKey="clickApplyFilters"/> |
| 26 | + <!--Select first product from grid and open mass action--> |
16 | 27 | <click selector="{{AdminProductGridSection.productGridCheckboxOnRow('1')}}" stepKey="clickCheckbox"/>
|
17 | 28 | <click selector="{{AdminProductGridSection.bulkActionDropdown}}" stepKey="clickDropdown"/>
|
18 | 29 | <click selector="{{AdminProductGridSection.bulkActionOption('Update attributes')}}" stepKey="clickOption"/>
|
19 | 30 | <waitForPageLoad stepKey="waitForUploadPage"/>
|
20 | 31 | <seeInCurrentUrl url="{{ProductAttributesEditPage.url}}" stepKey="seeAttributePageEditUrl"/>
|
| 32 | + <!--Update inventory attributes and save--> |
21 | 33 | <click selector="{{AdminUpdateAttributesAdvancedInventorySection.inventory}}" stepKey="openInvetoryTab"/>
|
22 | 34 | <click selector="{{AdminUpdateAttributesAdvancedInventorySection.changeQty}}" stepKey="uncheckChangeQty"/>
|
23 | 35 | <fillField selector="{{AdminUpdateAttributesAdvancedInventorySection.qty}}" userInput="{{attributes.qty}}" stepKey="fillFieldName"/>
|
|
26 | 38 | <click selector="{{AdminUpdateAttributesSection.saveButton}}" stepKey="save"/>
|
27 | 39 | <waitForElementVisible selector="{{AdminMessagesSection.success}}" stepKey="waitVisibleSuccessMessage"/>
|
28 | 40 | <see selector="{{AdminMessagesSection.success}}" userInput="Message is added to queue" stepKey="seeSuccessMessage"/>
|
| 41 | + <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="visitAdminProductPageSecondTime"/> |
| 42 | + <waitForPageLoad stepKey="waitForProductGridPage"/> |
| 43 | + <conditionalClick selector="{{AdminProductGridFilterSection.clearFilters}}" dependentSelector="{{AdminProductGridFilterSection.clearFilters}}" visible="true" stepKey="clickClearFiltersAfterMassAction"/> |
29 | 44 | </actionGroup>
|
30 | 45 | </actionGroups>
|
0 commit comments