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 =" ../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd" >
10+
11+ <actionGroup name =" CreateNewOrderActionGroup" >
12+ <click stepKey =" createNewOrder" selector =" {{NewOrderSection.createNewOrder}}" />
13+ <waitForPageLoad stepKey =" waitForCustomersList" time =" 3" />
14+ <click stepKey =" chooseCustomer" selector =" {{NewOrderSection.customer}}" />
15+ <waitForPageLoad stepKey =" waitForOrderPage" time =" 3" />
16+ <click stepKey =" addProducts" selector =" {{NewOrderSection.addProducts}}" />
17+ <waitForPageLoad stepKey =" waitForProducts" time =" 3" />
18+ <click stepKey =" chooseProducts" selector =" {{NewOrderSection.chooseProduct}}" />
19+ <waitForPageLoad stepKey =" waitForProductChoose" time =" 3" />
20+ <click stepKey =" addSelectedProduct" selector =" {{NewOrderSection.addSelectedProduct}}" />
21+ <waitForAjaxLoad stepKey =" waitForChoose" time =" 3" />
22+ <click stepKey =" openAddresses" selector =" {{NewOrderSection.openAddresses}}" />
23+ <click stepKey =" chooseAddress" selector =" {{NewOrderSection.chooseAddress}}" />
24+ <fillField stepKey =" fillState" selector =" {{NewOrderSection.state}}" userInput =" Yerevan" />
25+ <scrollTo stepKey =" scrollTo" selector =" #order-methods" />
26+ <waitForPageLoad stepKey =" waitForMethods" time =" 3" />
27+ <click stepKey =" startJSMethodExecution" selector =" {{NewOrderSection.openShippingMethods}}" />
28+ <waitForPageLoad stepKey =" waitForJSMethodExecution" time =" 3" />
29+ <click stepKey =" openShippingMethods" selector =" {{NewOrderSection.openShippingMethods}}" />
30+ <waitForPageLoad stepKey =" waitForShippingMethods" time =" 3" />
31+ <click stepKey =" chooseShippingMethods" selector =" {{NewOrderSection.shippingMethod}}" />
32+ <waitForPageLoad stepKey =" waitForShippingMethodChoose" time =" 4" />
33+ <click stepKey =" chooseBraintree" selector =" {{NewOrderSection.creditCardBraintree}}" />
34+ <waitForPageLoad stepKey =" waitForBraintreeConfigs" time =" 5" />
35+ <click stepKey =" openCardTypes" selector =" {{NewOrderSection.openCardTypes}}" />
36+ <waitForPageLoad stepKey =" waitForCardTypes" time =" 3" />
37+ <click stepKey =" chooseCardType" selector =" {{NewOrderSection.masterCard}}" />
38+ <waitForPageLoad stepKey =" waitForCardSelected" time =" 3" />
39+
40+ <switchToIFrame stepKey =" switchToCardNumber" selector =" {{NewOrderSection.cardFrame}}" />
41+ <fillField stepKey =" fillCardNumber" selector =" {{NewOrderSection.creditCardNumber}}" userInput =" {{PaymentAndShippingInfo.cardNumber}}" />
42+ <waitForPageLoad stepKey =" waitForFillCardNumber" time =" 1" />
43+ <switchToIFrame stepKey =" switchBackFromCard" />
44+
45+ <switchToIFrame stepKey =" switchToExpirationMonth" selector =" {{NewOrderSection.monthFrame}}" />
46+ <fillField stepKey =" fillMonth" selector =" {{NewOrderSection.expirationMonth}}" userInput =" {{PaymentAndShippingInfo.month}}" />
47+ <waitForPageLoad stepKey =" waitForFillMonth" time =" 1" />
48+ <switchToIFrame stepKey =" switchBackFromMonth" />
49+
50+ <switchToIFrame stepKey =" switchToExpirationYear" selector =" {{NewOrderSection.yearFrame}}" />
51+ <fillField stepKey =" fillYear" selector =" {{NewOrderSection.expirationYear}}" userInput =" {{PaymentAndShippingInfo.year}}" />
52+ <waitForPageLoad stepKey =" waitForFillYear" time =" 1" />
53+ <switchToIFrame stepKey =" switchBackFromYear" />
54+
55+ <switchToIFrame stepKey =" switchToCVV" selector =" {{NewOrderSection.cvvFrame}}" />
56+ <fillField stepKey =" fillCVV" selector =" {{NewOrderSection.cvv}}" userInput =" {{PaymentAndShippingInfo.cvv}}" />
57+ <wait stepKey =" waitForFillCVV" time =" 1" />
58+ <switchToIFrame stepKey =" switchBackFromCVV" />
59+
60+ <click stepKey =" submitOrder" selector =" {{NewOrderSection.submitOrder}}" />
61+ <waitForPageLoad stepKey =" waitForSaveConfig" time =" 5" />
62+ <waitForElementVisible selector =" {{NewOrderSection.successMessage}}" stepKey =" waitForSuccessMessage" time =" 1" />
63+
64+ </actionGroup >
65+
66+ </actionGroups >
0 commit comments