Skip to content

Commit 3a90d28

Browse files
author
Yaroslav Onischenko
committed
MAGETWO-43520: Cover SampleData by integration and functional tests
- removed not stable constraints - added sample data testsuite
1 parent 10044bf commit 3a90d28

File tree

3 files changed

+24
-8
lines changed

3 files changed

+24
-8
lines changed

dev/tests/functional/tests/app/Magento/SalesSampleData/Test/TestCase/CheckoutSalesSampleDataProductEntityTest.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
<data name="id" xsi:type="string">1</data>
1313
<data name="salesRule" xsi:type="string">active_sales_rule_for_all_groups</data>
1414
<data name="prices" xsi:type="array">
15-
<item name="grandTotal" xsi:type="string">53.71</item>
15+
<item name="grandTotal" xsi:type="string">50.00</item>
1616
</data>
17-
<data name="taxRule" xsi:type="string">us_ca_ny_rule</data>
1817
<data name="status" xsi:type="string">Pending</data>
1918
<data name="orderButtonsAvailable" xsi:type="string">Back, Cancel, Hold, Ship, Invoice, Edit</data>
2019
<data name="payment/method" xsi:type="string">checkmo</data>
@@ -24,10 +23,6 @@
2423
<data name="shipping/shipping_method" xsi:type="string">Fixed</data>
2524
<data name="configData" xsi:type="string">checkmo</data>
2625
<constraint name="Magento\Checkout\Test\Constraint\AssertOrderSuccessPlacedMessage"/>
27-
<constraint name="Magento\Sales\Test\Constraint\AssertOrderStatusIsCorrect"/>
28-
<constraint name="Magento\Sales\Test\Constraint\AssertOrderButtonsAvailable"/>
29-
<constraint name="Magento\Sales\Test\Constraint\AssertOrderGrandTotal"/>
30-
<constraint name="Magento\Sales\Test\Constraint\AssertOrderInOrdersGrid" />
3126
<constraint name="Magento\Sales\Test\Constraint\AssertOrderInOrdersGridOnFrontend"/>
3227
</variation>
3328
</testCase>

dev/tests/functional/tests/app/Magento/SalesSampleData/Test/etc/testcase.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
<scenario name="CheckoutSalesSampleDataProductEntityTest" firstStep="setupConfiguration">
1010
<step name="setupConfiguration" module="Magento_Config" next="createCustomer"/>
1111
<step name="createCustomer" module="Magento_Customer" next="createProducts"/>
12-
<step name="createProducts" module="Magento_Catalog" next="createTaxRule"/>
13-
<step name="createTaxRule" module="Magento_Tax" next="addProductsToTheCart"/>
12+
<step name="createProducts" module="Magento_Catalog" next="addProductsToTheCart"/>
1413
<step name="addProductsToTheCart" module="Magento_Checkout" next="estimateShippingAndTax"/>
1514
<step name="estimateShippingAndTax" module="Magento_Checkout" next="clickProceedToCheckout"/>
1615
<step name="clickProceedToCheckout" module="Magento_Checkout" next="selectCheckoutMethod"/>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © 2015 Magento. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="../../../../../vendor/magento/mtf/Magento/Mtf/TestRunner/etc/testRunner.xsd">
10+
<rule scope="testsuite">
11+
<allow>
12+
<module value="Magento_Install"/>
13+
<module value="Magento_CatalogSampleData"/>
14+
<module value="Magento_BundleSampleData"/>
15+
<module value="Magento_ConfigurableSampleData"/>
16+
<module value="Magento_CustomerSampleData"/>
17+
<module value="Magento_DownloadableSampleData"/>
18+
<module value="Magento_GroupedProductSampleData"/>
19+
<module value="Magento_SalesSampleData"/>
20+
</allow>
21+
</rule>
22+
</config>

0 commit comments

Comments
 (0)