File tree Expand file tree Collapse file tree 2 files changed +55
-0
lines changed
dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog Expand file tree Collapse file tree 2 files changed +55
-0
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
+ <sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" ../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd" >
11
+ <section name =" AdminCustomOptionsSection" >
12
+ <element name =" customizableOptions" type =" block" selector =" //div//span[text() = 'Customizable Options']" />
13
+ </section >
14
+ </sections >
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
+ <tests xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" ../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd" >
11
+ <test name =" SimpleProductTwoCustomOptions" >
12
+ <annotations >
13
+ <title value =" Create simple product with two custom options" />
14
+ <description value =" Admin should be able to create simple product with two custom options" />
15
+ <severity value =" AVERAGE" />
16
+ <testCaseId value =" MC-248" />
17
+ <group value =" Levi" />
18
+ </annotations >
19
+ <before >
20
+ <actionGroup ref =" LoginAsAdmin" stepKey =" loginAsAdmin" />
21
+ </before >
22
+ <after >
23
+ <amOnPage url =" {{AdminLogoutPage.url}}" stepKey =" amOnLogoutPage" />
24
+ </after >
25
+ <!-- ADD TEST STEPS HERE -->
26
+
27
+ <!-- Create product-->
28
+ <amOnPage url =" {{AdminProductIndexPage.url}}" stepKey =" navigateToProductIndex" />
29
+ <waitForPageLoad stepKey =" waitForProductIndexPage" />
30
+ <actionGroup ref =" resetProductGridToDefaultView" stepKey =" resetProductGridColumnsInitial" />
31
+ <actionGroup ref =" goToCreateProductPage" stepKey =" goToCreateSimpleProduct" >
32
+ <argument name =" product" value =" SimpleProduct3" />
33
+ </actionGroup >
34
+ <actionGroup ref =" fillMainProductFormNoWeight" stepKey =" fillSimpleProductMain" >
35
+ <argument name =" product" value =" SimpleProduct3" />
36
+ </actionGroup >
37
+
38
+ <click stepKey =" clickCustomizableOptions" selector =" {{AdminCustomOptionsSection.customizableOptions}}" />
39
+
40
+ </test >
41
+ </tests >
You can’t perform that action at this time.
0 commit comments