Skip to content

Commit

Permalink
Fixed broken MFTF tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Idolov committed Nov 4, 2019
1 parent 663d4bc commit d9c6d88
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@
<argument name="sourceCode" value="$source.source[source_code]$"/>
</actionGroup>
<actionGroup ref="saveProductForm" stepKey="saveConfigurableVariation"/>
<magentoCLI command="indexer:reindex" stepKey="performReindex"/>
<magentoCLI command="cache:flush" stepKey="cleanCache"/>

<!--Verify configurable product on storefront.-->
<actionGroup ref="AssertProductInStorefrontCategoryPage" stepKey="checkConfigurableProductIsPresentOnCategoryPage">
<argument name="category" value="$createCategory$"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<group value="multi_mode"/>
</annotations>
<before>
<magentoCLI stepKey="addDownloadableDomain" command="downloadable:domains:add static.magento.com example.com"/>
<!--Create stock and source.-->
<createData entity="FullSource1" stepKey="source"/>
<createData entity="BasicMsiStockWithMainWebsite1" stepKey="stock"/>
Expand Down Expand Up @@ -57,6 +58,7 @@
<argument name="websiteName" value="{{_defaultWebsite.name}}"/>
</actionGroup>
<deleteData createDataKey="stock" stepKey="deleteStock" before="amOnLogoutPage"/>
<magentoCLI stepKey="removeDownloadableDomain" command="downloadable:domains:remove static.magento.com example.com"/>
</after>

<!--Verify product on storefront.-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<group value="multi_mode"/>
</annotations>
<before>
<magentoCLI stepKey="addDownloadableDomain" command="downloadable:domains:add static.magento.com example.com"/>

<!--Assign Default Stock to Default Website.-->
<actionGroup ref="AssignWebsiteToStockActionGroup" stepKey="assignMainWebsiteToDefaultStock">
<argument name="stockName" value="{{_defaultStock.name}}"/>
Expand All @@ -45,6 +47,7 @@
<actionGroup ref="DisableSourceActionGroup" stepKey="disableSource" before="amOnLogoutPage">
<argument name="sourceCode" value="$source.source[source_code]$"/>
</actionGroup>
<magentoCLI stepKey="removeDownloadableDomain" command="downloadable:domains:remove static.magento.com example.com"/>
</after>

<!--Verify product on storefront.-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
<remove keyForRemoval="loginAsCustomer"/>
<remove keyForRemoval="goToMyAccountPage"/>
<!--Register customer.-->
<actionGroup ref="RegisterCustomOnStorefrontActionGroup" stepKey="registerCustomer">
<actionGroup ref="RegisterCustomOnStorefrontActionGroup" stepKey="registerCustomer" before="goToSidebarMenu">
<argument name="Customer" value="Simple_US_Customer"/>
<argument name="storeCode" value="customStore.code"/>
</actionGroup>
Expand Down
6 changes: 5 additions & 1 deletion InventoryAdvancedCheckout/etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Magento_InventoryAdvancedCheckout" />
<module name="Magento_InventoryAdvancedCheckout">
<sequence>
<module name="Magento_AdvancedCheckout"/>
</sequence>
</module>
</config>

0 comments on commit d9c6d88

Please sign in to comment.