File tree Expand file tree Collapse file tree 5 files changed +73
-7
lines changed
app/code/Magento/Catalog/Test/Mftf Expand file tree Collapse file tree 5 files changed +73
-7
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+
9
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" AdminCategoryPageOpenProductsInCategorySectionActionGroup" >
12
+ <annotations >
13
+ <description >Open 'Products in Category' section on category edit page in Admin.</description >
14
+ </annotations >
15
+
16
+ <conditionalClick selector =" {{AdminCategoryProductsSection.sectionHeader}}" dependentSelector =" {{AdminCategoryProductsSection.sectionBody}}" visible =" false" stepKey =" openSectionIfHidden" />
17
+ <scrollTo selector =" {{AdminCategoryProductsSection.sectionHeader}}" stepKey =" scrollToSection" />
18
+ <waitForPageLoad stepKey =" waitSectionFullyLoaded" />
19
+ </actionGroup >
20
+ </actionGroups >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+
9
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" AdminSaveCategoryFormActionGroup" >
12
+ <annotations >
13
+ <description >Save category edit form in Admin and check success message.</description >
14
+ </annotations >
15
+
16
+ <seeInCurrentUrl url =" {{AdminCategoryPage.url}}" stepKey =" seeOnCategoryPage" />
17
+ <click selector =" {{AdminMainActionsSection.save}}" stepKey =" saveCategory" />
18
+ <waitForElementVisible selector =" {{AdminMessagesSection.success}}" stepKey =" waitForSuccessMessageAppears" />
19
+ <see userInput =" You saved the category." selector =" {{AdminMessagesSection.success}}" stepKey =" assertSuccessMessage" />
20
+ </actionGroup >
21
+ </actionGroups >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ -->
7
+
8
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
9
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
10
+ <!-- Check simple product on the category page -->
11
+ <actionGroup name =" AssertStorefrontCategorySimpleProductShownActionGroup" >
12
+ <annotations >
13
+ <description >Validate that the provided Simple Product is present and correct on a Category page.</description >
14
+ </annotations >
15
+ <arguments >
16
+ <argument name =" productName" type =" string" defaultValue =" {{ApiSimpleOne.name}}" />
17
+ <argument name =" productPrice" type =" string" defaultValue =" {{ApiSimpleOne.price}}" />
18
+ </arguments >
19
+
20
+ <waitForElementVisible selector =" {{StorefrontCategoryProductSection.ProductTitleByName(productName)}}" stepKey =" waitForProduct" />
21
+ <seeElement selector =" {{StorefrontCategoryProductSection.ProductTitleByName(productName)}}" stepKey =" assertProductName" />
22
+ <see userInput =" ${{productPrice}}" selector =" {{StorefrontCategoryProductSection.ProductPriceByName(productName)}}" stepKey =" assertProductPrice" />
23
+ <moveMouseOver selector =" {{StorefrontCategoryProductSection.ProductInfoByName(productName)}}" stepKey =" moveMouseOverProduct" />
24
+ <seeElement selector =" {{StorefrontCategoryProductSection.ProductAddToCartByName(productName)}}" stepKey =" assertAddToCartButton" />
25
+ </actionGroup >
26
+ </actionGroups >
Original file line number Diff line number Diff line change 10
10
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
11
<actionGroup name =" SaveCategoryFormActionGroup" >
12
12
<annotations >
13
- <description >Requires navigation to the Category creation/edit page. Checks that the url contains the AdminCategoryPage url. Saves the Category.</description >
13
+ <description >DEPRECATED. Use AdminSaveCategoryFormActionGroup instead. Requires navigation to the Category creation/edit page. Checks that the url contains the AdminCategoryPage url. Saves the Category.</description >
14
14
</annotations >
15
15
16
16
<seeInCurrentUrl url =" {{AdminCategoryPage.url}}" stepKey =" seeOnCategoryPage" />
17
- <click selector =" {{AdminCategoryMainActionsSection.SaveButton }}" stepKey =" saveCategory" />
18
- <seeElement selector =" {{AdminCategoryMessagesSection.SuccessMessage }}" stepKey =" assertSuccess" />
17
+ <click selector =" {{AdminMainActionsSection.save }}" stepKey =" saveCategory" />
18
+ <seeElement selector =" {{AdminMessagesSection.success }}" stepKey =" assertSuccess" />
19
19
</actionGroup >
20
20
</actionGroups >
Original file line number Diff line number Diff line change 9
9
<sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
10
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
11
11
<section name =" AdminCategoryProductsSection" >
12
- <element name =" sectionHeader" type =" button" selector =" div[data-index='assign_products']" timeout =" 30" />
13
- <element name =" addProducts" type =" button" selector =" #catalog_category_add_product_tabs" timeout =" 30" />
14
- <element name =" addProductsDisabled" type =" button" selector =" #catalog_category_add_product_tabs[disabled]" timeout =" 30" />
12
+ <element name =" sectionHeader" type =" button" selector =" div[data-index='assign_products'] .fieldset-wrapper-title" timeout =" 30" />
13
+ <element name =" sectionBody" type =" button" selector =" div[data-index='assign_products'] .admin__fieldset-wrapper-content" timeout =" 30" />
15
14
</section >
16
- </sections >
15
+ </sections >
You can’t perform that action at this time.
0 commit comments