|
| 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="AdminConfigureSalesGiftOptionsActionGroup"> |
| 12 | + <annotations> |
| 13 | + <description>Sets Allow Gift Message For a product</description> |
| 14 | + </annotations> |
| 15 | + <arguments> |
| 16 | + <argument name="allowGiftMsgOnOrderLevel" type="string"/> |
| 17 | + <argument name="allowGiftMsgOnOrderItems" type="string"/> |
| 18 | + <argument name="allowWrappingGiftOnOrderLevel" type="string"/> |
| 19 | + <argument name="allowWrappingGiftOnItemLevel" type="string"/> |
| 20 | + <argument name="allowGiftReceipt" type="string"/> |
| 21 | + <argument name="allowPrintedCard" type="string"/> |
| 22 | + |
| 23 | + </arguments> |
| 24 | + <amOnPage url="{{AdminSalesConfigPage.url('')}}" stepKey="amOnSalesConfigurationPage"/> |
| 25 | + <scrollTo selector="{{AdminSalesConfigSection.giftOptions}}" x="-200" y="-200" stepKey="scrollToGiftOptions"/> |
| 26 | + <conditionalClick selector="{{AdminSalesConfigSection.expandGiftOptions('')}}" dependentSelector="{{AdminSalesConfigSection.giftOptions('')}}" visible="true" stepKey="expandGiftOptions"/> |
| 27 | + <uncheckOption selector="{{AdminSalesConfigSection.chkAllowGiftMessagesOnOrderLevel}}" stepKey="uncheckGiftMessagesOnOrderLevel"/> |
| 28 | + <uncheckOption selector="{{AdminSalesConfigSection.chkAllowGiftMessagesOnOrderItem}}" stepKey="uncheckGiftMessagesOnOrderItem"/> |
| 29 | + <selectOption userInput="{{allowGiftMsgOnOrderLevel}}" selector="{{AdminSalesConfigSection.selectAllowGiftMessagesOnOrderLevel}}" stepKey="selectAllowGiftMsgOnOrderLevel"/> |
| 30 | + <selectOption userInput="{{allowGiftMsgOnOrderItems}}" selector="{{AdminSalesConfigSection.selectAllowGiftMessagesOnOrderItem}}" stepKey="selectAllowGiftMsgOnOrderItems"/> |
| 31 | + <selectOption userInput="{{allowWrappingGiftOnOrderLevel}}" selector="{{AdminSalesConfigSection.selectAllowWrappingGiftOnOrderLevel}}" stepKey="selectAllowWrappingGiftOnOrderLevel"/> |
| 32 | + <selectOption userInput="{{allowWrappingGiftOnItemLevel}}" selector="{{AdminSalesConfigSection.selectAllowWrappingGiftOnItemLevel}}" stepKey="selectAllowWrappingGiftOnItemLevel"/> |
| 33 | + <selectOption userInput="{{allowGiftReceipt}}" selector="{{AdminSalesConfigSection.selectAllowGiftReceipt}}" stepKey="selectAllowGiftReceipt"/> |
| 34 | + <selectOption userInput="{{allowPrintedCard}}" selector="{{AdminSalesConfigSection.selectAllowPrintedCard}}" stepKey="selectAllowPrintedCard"/> |
| 35 | + <conditionalClick selector="{{AdminSalesConfigSection.expandGiftOptions('open')}}" dependentSelector="{{AdminSalesConfigSection.giftOptions('open')}}" visible="true" stepKey="collapseGiftOptions"/> |
| 36 | + <click selector="{{AdminConfigSection.saveButton}}" stepKey="saveTheGiftOptionsConfig"/> |
| 37 | + </actionGroup> |
| 38 | +</actionGroups> |
0 commit comments