|
7 | 7 | -->
|
8 | 8 |
|
9 | 9 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
10 |
| - xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
11 | 11 | <test name="OnlyXleftNotDisplayedForSimpleProductWithMangeStockAsNoOnTestStockAndMainWebsitesTest">
|
12 | 12 | <annotations>
|
13 | 13 | <features value="Inventory"/>
|
|
77 | 77 |
|
78 | 78 | <fillField userInput="10" selector="{{AdminProductFormSection.productPrice}}" stepKey="updatePriceTo10"/>
|
79 | 79 | <fillField userInput="1" selector="{{AdminProductFormSection.productWeight}}" stepKey="updateWeight"/>
|
80 |
| - <conditionalClick selector="{{AdminProductFormSection.unassignSource('Default Source')}}" dependentSelector="{{AdminProductFormSection.unassignSource('Default Source')}}" visible="true" stepKey="unassignDefaultSource"/> |
81 |
| - <click selector="{{AdminProductFormSection.btnAssignSources}}" stepKey="clickAssignSourcesButton"/> |
82 |
| - <waitForElementVisible selector="{{AdminProductFormSection.searchBySource}}" stepKey="waitForSearchSourceToBeVisible"/> |
83 |
| - <fillField userInput="$$createSource.source[source_code]$$" selector="{{AdminProductFormSection.searchBySource}}" stepKey="enterSource"/> |
84 |
| - <click selector="{{AdminProductFormSection.clickSearch}}" stepKey="clickSearchButton"/> |
85 |
| - <waitForElementVisible selector="{{AdminProductFormSection.chkSourceToAssign('$$createSource.source[source_code]$$')}}" stepKey="waitForAssignsourcesToBeVisible"/> |
86 |
| - <checkOption selector="{{AdminProductFormSection.chkSourceToAssign('$$createSource.source[source_code]$$')}}" stepKey="checkTheCreatedSource"/> |
87 |
| - <click selector="{{AdminProductFormSection.btnDoneAssignedSources}}" stepKey="clickOnDoneButton"/> |
| 80 | + <conditionalClick selector="{{AdminProductFormConfigurationsSection.unAssignSource('Default Source')}}" dependentSelector="{{AdminProductFormConfigurationsSection.unAssignSource('Default Source')}}" visible="true" stepKey="unAssignDefaultSource"/> |
| 81 | + <click selector="{{AdminProductFormConfigurationsSection.btnAssignSources}}" stepKey="clickAssignSourcesButton"/> |
| 82 | + <waitForElementVisible selector="{{AdminProductFormConfigurationsSection.searchBySource}}" stepKey="waitForSearchSourceToBeVisible"/> |
| 83 | + <fillField userInput="$$createSource.source[source_code]$$" selector="{{AdminProductFormConfigurationsSection.searchBySource}}" stepKey="enterSource"/> |
| 84 | + <click selector="{{AdminProductFormConfigurationsSection.clickSearch}}" stepKey="clickSearchButton"/> |
| 85 | + <waitForElementVisible selector="{{AdminProductFormConfigurationsSection.chkSourceToAssign('$$createSource.source[source_code]$$')}}" stepKey="waitForAssignSourcesToBeVisible"/> |
| 86 | + <checkOption selector="{{AdminProductFormConfigurationsSection.chkSourceToAssign('$$createSource.source[source_code]$$')}}" stepKey="checkTheCreatedSource"/> |
| 87 | + <click selector="{{AdminProductFormConfigurationsSection.btnDoneAssignedSources}}" stepKey="clickOnDoneButton"/> |
88 | 88 | <fillField userInput="2" selector="{{AdminProductFormSection.assignedSourcesQty}}" stepKey="setQtyForAssignedSources"/>
|
89 | 89 | <click selector="{{AdminProductFormSection.save}}" stepKey="clickOnSaveButton"/>
|
90 |
| - <see userInput="You saved the product." stepKey="saveSuccessfulForManagestockAsYes"/> |
| 90 | + <see userInput="You saved the product." stepKey="saveSuccessfulForManageStockAsYes"/> |
91 | 91 |
|
92 | 92 | <magentoCLI stepKey="reindexForAssignedSources" command="indexer:reindex"/>
|
93 | 93 | <magentoCLI stepKey="flushCacheForAssignedSources" command="cache:flush"/>
|
|
107 | 107 | </actionGroup>
|
108 | 108 | <waitForElementVisible selector="{{AdminProductFormSection.btnAdvancedInventory}}" stepKey="waitForAdvancedInventoryToBeVisible"/>
|
109 | 109 | <click selector="{{AdminProductFormSection.btnAdvancedInventory}}" stepKey="clickOnAdvancedInventoryButton"/>
|
110 |
| - <waitForElementVisible selector="{{AdminProductFormSection.checkConfigSettingsAdvancedInventory('use_config_manage_stock')}}" stepKey="waitForAdvancedInventoryPageToBeLoaded"/> |
111 |
| - <uncheckOption selector="{{AdminProductFormSection.checkConfigSettingsAdvancedInventory('use_config_manage_stock')}}" stepKey="uncheckManageStockOption"/> |
112 |
| - <selectOption userInput="No" selector="{{AdminProductFormSection.selectManageStockOption}}" stepKey="selectNoAsManageStock"/> |
113 |
| - <click selector="{{AdminProductFormSection.btnDoneAdvancedInventory}}" stepKey="clickOnAdvancedInventoryDoneButton"/> |
| 110 | + <waitForElementVisible selector="{{AdminProductFormAdvancedInventorySection.checkConfigSettingsAdvancedInventory('use_config_manage_stock')}}" stepKey="waitForAdvancedInventoryPageToBeLoaded"/> |
| 111 | + <uncheckOption selector="{{AdminProductFormAdvancedInventorySection.checkConfigSettingsAdvancedInventory('use_config_manage_stock')}}" stepKey="uncheckManageStockOption"/> |
| 112 | + <selectOption userInput="No" selector="{{AdminProductFormAdvancedInventorySection.manageStock}}" stepKey="selectNoAsManageStock"/> |
| 113 | + <click selector="{{AdminProductFormAdvancedInventorySection.doneButton}}" stepKey="clickOnAdvancedInventoryDoneButton"/> |
114 | 114 | <click selector="{{AdminProductFormSection.save}}" stepKey="clickOnSaveButtonPostSettingManageStockAsNo"/>
|
115 |
| - <see userInput="You saved the product." stepKey="saveSuccessfulForManagestockAsNo"/> |
116 |
| - <magentoCLI stepKey="reindexForSettingManagestockAsNo" command="indexer:reindex"/> |
117 |
| - <magentoCLI stepKey="flushCacheForSettingManagestockAsNo" command="cache:flush"/> |
| 115 | + <see userInput="You saved the product." stepKey="saveSuccessfulForManageStockAsNo"/> |
| 116 | + <magentoCLI stepKey="reindexForSettingManageStockAsNo" command="indexer:reindex"/> |
| 117 | + <magentoCLI stepKey="flushCacheForSettingManageStockAsNo" command="cache:flush"/> |
118 | 118 |
|
119 | 119 | <!-- Verify with Manage Stock set as No for the product -->
|
120 | 120 | <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openProductPageOnStorefrontForManageStockAsNo">
|
|
0 commit comments