Skip to content

Commit c59e4dc

Browse files
author
olysenko
committed
MAGETWO-89382: Automate MAGETWO-46344 MFTF
1 parent 2248d29 commit c59e4dc

File tree

9 files changed

+61
-76
lines changed

9 files changed

+61
-76
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/ActionGroup/MoveCategoryActionGroup.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
</arguments>
1616
<click stepKey="expandAllCategoriesTree" selector="{{AdminCategorySidebarTreeSection.expandAll}}"/>
1717
<waitForAjaxLoad stepKey="waitForCategoriesExpand"/>
18-
<dragAndDrop selector1="{{AdminCategorySidebarTreeSection.category('childCategory')}}" selector2="{{AdminCategorySidebarTreeSection.category('parentCategory')}}" stepKey="moveCategory"/>
19-
<waitForElementVisible selector="{{AdminCategoryWarningMessagesPopupSection.warningMessage}}" stepKey="waitForWarningMessageVisible"/>
20-
<see selector="{{AdminCategoryWarningMessagesPopupSection.warningMessage}}" userInput="This operation can take a long time" stepKey="seeWarningMessage"/>
21-
<click selector="{{AdminCategoryWarningMessagesPopupSection.okButton}}" stepKey="clickOkButtonOnWarningPopup"/>
18+
<dragAndDrop selector1="{{AdminCategorySidebarTreeSection.categoryInTree('childCategory')}}" selector2="{{AdminCategorySidebarTreeSection.categoryInTree('parentCategory')}}" stepKey="moveCategory"/>
19+
<waitForElementVisible selector="{{AdminCategoryModalSection.message}}" stepKey="waitForWarningMessageVisible"/>
20+
<see selector="{{AdminCategoryModalSection.message}}" userInput="This operation can take a long time" stepKey="seeWarningMessage"/>
21+
<click selector="{{AdminCategoryModalSection.ok}}" stepKey="clickOkButtonOnWarningPopup"/>
22+
<waitForPageLoad stepKey="waitForCategoryPageReload"/>
2223
</actionGroup>
23-
</actionGroups>
24+
</actionGroups>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/ActionGroup/StorefrontCategoryActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<actionGroup name="StorefrontCheckCategoryActionGroup">
1313
<arguments>
1414
<argument name="category"/>
15-
<argument name="productCount"/>
15+
<argument name="productCount" type="string"/>
1616
</arguments>
1717
<seeInCurrentUrl url="/{{category.custom_attributes[url_key]}}.html" stepKey="checkUrl"/>
1818
<seeInTitle userInput="{{category.name}}" stepKey="assertCategoryNameInTitle"/>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/ActionGroup/StorefrontProductActionGroup.xml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,4 @@
2323
<see userInput="{{product.custom_attributes[description]}}" selector="{{StorefrontProductInfoMainSection.productDescription}}" stepKey="assertProductDescription"/>
2424
<see userInput="{{product.custom_attributes[short_description]}}" selector="{{StorefrontProductInfoMainSection.productShortDescription}}" stepKey="assertProductShortDescription"/>
2525
</actionGroup>
26-
<!-- Check the simple product on the product page without description -->
27-
<actionGroup name="StorefrontCheckSimpleProductNoDescription">
28-
<arguments>
29-
<argument name="product"/>
30-
</arguments>
31-
<seeInCurrentUrl url="/{{product.custom_attributes[url_key]}}.html" stepKey="checkUrl"/>
32-
<seeInTitle userInput="{{product.name}}" stepKey="AssertProductNameInTitle"/>
33-
<see userInput="{{product.name}}" selector="{{StorefrontProductInfoMainSection.productName}}" stepKey="assertProductName"/>
34-
<see userInput="{{product.sku}}" selector="{{StorefrontProductInfoMainSection.productSku}}" stepKey="assertProductSku"/>
35-
<see userInput="${{product.price}}.00" selector="{{StorefrontProductInfoMainSection.productPrice}}" stepKey="assertProductPrice"/>
36-
<see userInput="IN STOCK" selector="{{StorefrontProductInfoMainSection.productStockStatus}}" stepKey="assertInStock"/>
37-
<seeElement selector="{{StorefrontProductInfoMainSection.AddToCart}}" stepKey="assertAddToCart" />
38-
</actionGroup>
3926
</actionGroups>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Data/ProductData.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,19 @@
133133
<requiredEntity type="product_extension_attribute">EavStockItem</requiredEntity>
134134
<requiredEntity type="custom_attribute_array">CustomAttributeCategoryIds</requiredEntity>
135135
</entity>
136+
<entity name="productWithDescription" type="product">
137+
<data key="sku" unique="suffix">testProductWithDescriptionSku</data>
138+
<data key="type_id">simple</data>
139+
<data key="attribute_set_id">4</data>
140+
<data key="visibility">4</data>
141+
<data key="name" unique="suffix">testProductWithDescriptionName</data>
142+
<data key="price">123.00</data>
143+
<data key="urlKey" unique="suffix">testproductwithdescriptionurlkey</data>
144+
<data key="status">1</data>
145+
<data key="quantity">100</data>
146+
<requiredEntity type="product_extension_attribute">EavStockItem</requiredEntity>
147+
<requiredEntity type="custom_attribute_array">CustomAttributeCategoryIds</requiredEntity>
148+
<requiredEntity type="custom_attribute_array">ApiProductDescription</requiredEntity>
149+
<requiredEntity type="custom_attribute_array">ApiProductShortDescription</requiredEntity>
150+
</entity>
136151
</entities>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Page/AdminCategoryPage.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@
1818
<section name="AdminCategoryProductsGridSection"/>
1919
<section name="AdminCategoryModalSection"/>
2020
<section name="AdminCategoryMessagesSection"/>
21-
<section name="AdminCategoryWarningMessagesPopupSection"/>
2221
</page>
2322
</pages>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Section/AdminCategoryModalSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
<element name="message" type="text" selector="aside.confirm div.modal-content"/>
1313
<element name="title" type="text" selector="aside.confirm .modal-header .modal-title"/>
1414
<element name="ok" type="button" selector="aside.confirm .modal-footer .action-primary"/>
15-
<element name="cancel" type="button" selector="aside.confirm .modal-footer .action-dismiss"/>
15+
<element name="cancel" type="button" selector="aside.confirm .modal-footer .action-secondary"/>
1616
</section>
1717
</sections>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Section/AdminCategorySidebarTreeSection.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@
1414
<element name="categoryTreeRoot" type="text" selector="div.x-tree-root-node>li.x-tree-node:first-of-type>div.x-tree-node-el:first-of-type" timeout="30"/>
1515
<element name="categoryInTree" type="text" selector="//a/span[contains(text(), '{{name}}')]" parameterized="true" timeout="30"/>
1616
<element name="categoryInTreeUnderRoot" type="text" selector="//div[@class='x-tree-root-node']/li/ul/li[@class='x-tree-node']/div/a/span[contains(text(), '{{name}}')]" parameterized="true"/>
17-
<element name="category" type="button" selector="//span[contains(text(),'{{var1}}')]" parameterized="true"/>
1817
</section>
1918
</sections>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Section/AdminCategoryWarningMessagesPopupSection.xml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)