|
36 | 36 | </createData>
|
37 | 37 | </before>
|
38 | 38 | <after>
|
| 39 | + <actionGroup ref="DeleteProductBySkuActionGroup" stepKey="deleteProduct"> |
| 40 | + <argument name="sku" value="{{GiftCard.sku}}"/> |
| 41 | + </actionGroup> |
39 | 42 | <magentoCLI command="config:set paypal/general/merchant_country US" stepKey="setMerchantCountry"/>
|
40 | 43 | <magentoCLI command="config:set payment/paypal_express/active 0" stepKey="disablePayPalExpress"/>
|
41 | 44 | <actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutCustomer" />
|
|
50 | 53 | <actionGroup ref="GoToSpecifiedCreateProductPageActionGroup" stepKey="openProductFillForm">
|
51 | 54 | <argument name="productType" value="giftcard"/>
|
52 | 55 | </actionGroup>
|
53 |
| - <!-- Save gift card product --> |
| 56 | + <!-- Fill gift card product values --> |
| 57 | + <actionGroup ref="AdminFillGiftCardProductFieldsActionGroup" stepKey="fillGiftCardProductFields"> |
| 58 | + <argument name="product" value="GiftCard"/> |
| 59 | + </actionGroup> |
| 60 | + <!-- Add amount to gift card product --> |
| 61 | + <actionGroup ref="addGiftCardAmount" stepKey="addAmountToGiftCard"> |
| 62 | + <argument name="giftCardAmount" value="GiftCard.amounts[0]"/> |
| 63 | + </actionGroup> |
| 64 | + <!-- Add gift card product to category --> |
| 65 | + <searchAndMultiSelectOption selector="{{AdminProductFormSection.categoriesDropdown}}" parameterArray="[$$createCategory.name$$]" stepKey="fillCategory" after="addAmountToGiftCard"/> |
| 66 | + <!-- Save gift card product --> |
54 | 67 | <actionGroup ref="SaveProductFormActionGroup" stepKey="saveProduct"/>
|
55 | 68 | <actionGroup ref="LoginToStorefrontActionGroup" stepKey="signUpNewUser">
|
56 | 69 | <argument name="Customer" value="$$createCustomer$$"/>
|
57 | 70 | </actionGroup>
|
| 71 | + <!-- Quick search gift card product --> |
| 72 | + <actionGroup ref="StorefrontCheckQuickSearchActionGroup" stepKey="quickSearchForGiftCardProduct"> |
| 73 | + <argument name="phrase" value="GiftCard.sku"/> |
| 74 | + </actionGroup> |
58 | 75 | <!-- Go to gift card product page on storefront -->
|
59 | 76 | <seeElement selector="{{StorefrontCategoryMainSection.productLink}}" stepKey="seeProductsInCategory"/>
|
60 | 77 | <waitForElementClickable selector="{{StorefrontCategoryMainSection.productLink}}" stepKey="waitForProductClickable"/>
|
|
110 | 127 | <!-- Check comment history -->
|
111 | 128 | <actionGroup ref="AdminOpenOrderCommentsHistoryActionGroup" stepKey="clickOnCommentsHistory"/>
|
112 | 129 | <waitForText selector="{{AdminOrderCommentsTabSection.orderCommentsWithType('Captured amount')}}" userInput="Captured amount of $15.00 online. Transaction ID: "{$grabLastTransactionIDForCaptured}"" stepKey="seeOrderHistoryNotes"/>
|
113 |
| - </test> |
| 130 | + <!-- Go to invoice tab and verify invoice is present--> |
| 131 | + <actionGroup ref="AdminOpenInvoiceTabFromOrderPageActionGroup" stepKey="clickInvoicesTabOrdersPage"/> |
| 132 | + <waitForElementVisible selector="{{AdminOrderInvoicesTabSection.viewInvoice}}" stepKey="waitForInvoicesTabOpenedOne"/> |
| 133 | + <seeElement selector="{{AdminOrderInvoicesTabSection.viewInvoice}}" stepKey="seeForInvoicesTabOpenedOne"/> |
| 134 | + </test> |
114 | 135 | </tests>
|
0 commit comments