Skip to content

Commit 89ff91c

Browse files
committed
MAGETWO-97034: Import Products with Delete Entities
1 parent 0e0f413 commit 89ff91c

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

app/code/Magento/ImportExport/Test/Mftf/Test/AdminImportProductsWithDeleteEntitiesTest.xml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@
3434
<field key="name">Api Gift Card for Test</field>
3535
<field key="sku">Api Gift Card for Test</field>
3636
</createData>
37-
<!-- Create Downloadable product -->
38-
<createData entity="ApiDownloadableProduct" stepKey="createDownloadableProduct">
39-
<field key="name">Api Downloadable Product for Test</field>
40-
<field key="sku">Api Downloadable Product for Test</field>
41-
</createData>
4237
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
4338
</before>
4439
<after>
@@ -55,7 +50,7 @@
5550
<click selector="{{AdminImportMainSection.importButton}}" stepKey="clickImportButton"/>
5651
<waitForAjaxLoad stepKey="waitForFileToImportProcessed1"/>
5752
<see selector="{{AdminMessagesSection.successMessage}}" userInput="Import successfully done" stepKey="assertSuccessMessage"/>
58-
<see selector="{{AdminImportMainSection.noticeMessage}}" userInput="Created: 0, Updated: 0, Deleted: 4" stepKey="assertNoticeMessage"/>
53+
<see selector="{{AdminImportMainSection.noticeMessage}}" userInput="Created: 0, Updated: 0, Deleted: 3" stepKey="assertNoticeMessage"/>
5954
<actionGroup ref="SearchForProductOnBackendActionGroup" stepKey="searchSimpleProductOnBackend">
6055
<argument name="product" value="$$createSimpleProduct$$"/>
6156
</actionGroup>
@@ -68,9 +63,5 @@
6863
<argument name="product" value="$$createApiGiftCard$$"/>
6964
</actionGroup>
7065
<see selector="{{AdminDataGridTableSection.dataGridNoData}}" userInput="We couldn't find any records." stepKey="assertDataGridNoDataMessage2"/>
71-
<actionGroup ref="SearchForProductOnBackendActionGroup" stepKey="searchDownloadableProductOnBackend">
72-
<argument name="product" value="$$createDownloadableProduct$$"/>
73-
</actionGroup>
74-
<see selector="{{AdminDataGridTableSection.dataGridNoData}}" userInput="We couldn't find any records." stepKey="assertDataGridNoDataMessage3"/>
7566
</test>
7667
</tests>
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
sku,store_view_code,attribute_set_code,product_type,categories,product_websites,name,description,short_description,weight,product_online,tax_class_name,visibility,price,special_price,special_price_from_date,special_price_to_date,url_key,meta_title,meta_keywords,meta_description,base_image,base_image_label,small_image,small_image_label,thumbnail_image,thumbnail_image_label,swatch_image,swatch_image_label,created_at,updated_at,new_from_date,new_to_date,display_product_options_in,map_price,msrp_price,map_enabled,gift_message_available,custom_design,custom_design_from,custom_design_to,custom_layout_update,page_layout,product_options_container,msrp_display_actual_price_type,country_of_manufacture,additional_attributes,qty,out_of_stock_qty,use_config_min_qty,is_qty_decimal,allow_backorders,use_config_backorders,min_cart_qty,use_config_min_sale_qty,max_cart_qty,use_config_max_sale_qty,is_in_stock,notify_on_stock_below,use_config_notify_stock_qty,manage_stock,use_config_manage_stock,use_config_qty_increments,qty_increments,use_config_enable_qty_inc,enable_qty_increments,is_decimal_divided,website_id,deferred_stock_update,use_config_deferred_stock_update,related_skus,related_position,crosssell_skus,crosssell_position,upsell_skus,upsell_position,additional_images,additional_image_labels,hide_from_product_page,custom_options,bundle_price_type,bundle_sku_type,bundle_price_view,bundle_weight_type,bundle_values,bundle_shipment_type,configurable_variations,configurable_variation_labels,associated_skus
2-
"Simple Product for Test",,Default,simple,,base,"Simple Product for Test",,,,1,"Taxable Goods","Catalog, Search",123.0000,,,,simple-product-for-test,,,,,,,,,,,,"12/17/18, 8:49 AM","12/17/18, 8:49 AM",,,"Block after Info Column",,,,,,,,,,,,,,1000.0000,0.0000,1,0,0,1,1.0000,1,0.0000,1,1,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,
3-
"Virtual Product for Test",,Default,virtual,,base,"Virtual Product for Test",,,0.0000,1,"Taxable Goods","Catalog, Search",99.9900,,,,virtual-product-for-test,,,,,,,,,,,,"12/17/18, 8:49 AM","12/17/18, 8:49 AM",,,"Block after Info Column",,,,,,,,,,,,,,1000.0000,0.0000,1,0,0,1,1.0000,1,0.0000,1,1,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,
4-
"Api Gift Card for Test",,Default,giftcard,,base,"Api Gift Card for Test","API Product Description5c17b791672531","API Product Short Description5c17b791672a11",,1,,"Catalog, Search",,,,,api-gift-card-for-test,,,,,,,,,,,,"12/17/18, 8:49 AM","12/17/18, 8:49 AM",,,"Block after Info Column",,,,,,,,,,,,,,1000.0000,0.0000,1,0,0,1,1.0000,1,0.0000,1,1,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,
5-
"Api Downloadable Product for Test",,Default,downloadable,,base,"Api Downloadable Product for Test","API Product Description5c17b791672532","API Product Short Description5c17b791672a12",,1,"Taxable Goods","Catalog, Search",123.0000,,,,api-downloadable-product-for-test,,,,,,,,,,,,"12/17/18, 8:49 AM","12/17/18, 8:49 AM",,,"Block after Info Column",,,,,,,,,,,,,,1000.0000,0.0000,1,0,0,1,1.0000,1,0.0000,1,1,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,
2+
"Simple Product for Test",,Default,simple,,base,"Simple Product for Test",,,,1,"Taxable Goods","Catalog, Search",123.0000,,,,simple-product-for-test,,,,,,,,,,,,"12/18/18, 5:51 AM","12/18/18, 5:51 AM",,,"Block after Info Column",,,,,,,,,,,,,,1000.0000,0.0000,1,0,0,1,1.0000,1,0.0000,1,1,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,
3+
"Virtual Product for Test",,Default,virtual,,base,"Virtual Product for Test",,,0.0000,1,"Taxable Goods","Catalog, Search",99.9900,,,,virtual-product-for-test,,,,,,,,,,,,"12/18/18, 5:52 AM","12/18/18, 5:52 AM",,,"Block after Info Column",,,,,,,,,,,,,,1000.0000,0.0000,1,0,0,1,1.0000,1,0.0000,1,1,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,
4+
"Api Gift Card for Test",,Default,giftcard,,base,"Api Gift Card for Test","API Product Description5c18df63aaebc1","API Product Short Description5c18df63aaf011",,1,,"Catalog, Search",,,,,api-gift-card-for-test,,,,,,,,,,,,"12/18/18, 5:52 AM","12/18/18, 5:52 AM",,,"Block after Info Column",,,,,,,,,,,,,,1000.0000,0.0000,1,0,0,1,1.0000,1,0.0000,1,1,,1,0,1,1,0.0000,1,0,0,0,0,1,,,,,,,,,,,,,,,,,,,

0 commit comments

Comments
 (0)