|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> |
| 4 | + <actionGroup name="AdminConfigureUPSRestAPIActionGroup"> |
| 5 | + <annotations> |
| 6 | + <description>Configure UPS shipping method with REST API settings via admin UI</description> |
| 7 | + </annotations> |
| 8 | + <arguments> |
| 9 | + <argument name="gatewayUrl" type="string" defaultValue="{{_CREDS.magento/carriers_ups_gateway_rest_url}}"/> |
| 10 | + <argument name="username" type="string" defaultValue="{{_CREDS.magento/carriers_ups_rest_username}}"/> |
| 11 | + <argument name="password" type="string" defaultValue="{{_CREDS.magento/carriers_ups_rest_password}}"/> |
| 12 | + <argument name="shipperNumber" type="string" |
| 13 | + defaultValue="{{_CREDS.magento/carriers_ups_rest_shipper_number}}"/> |
| 14 | + <argument name="accountMode" type="string" defaultValue="1"/> |
| 15 | + </arguments> |
| 16 | + <conditionalClick selector="{{AdminShippingMethodUPSSection.UPSTab}}" |
| 17 | + dependentSelector="{{AdminShippingMethodUPSSection.handlingFee}}" |
| 18 | + visible="false" |
| 19 | + stepKey="openUPSTab"/> |
| 20 | + <uncheckOption selector="{{AdminShippingMethodUPSSection.enableCheckoutCheckbox}}" |
| 21 | + stepKey="unCheckEnableForCheckout"/> |
| 22 | + <selectOption selector="{{AdminShippingMethodUPSSection.enableCheckoutSelect}}" |
| 23 | + userInput="1" |
| 24 | + stepKey="selectEnableForCheckoutToYes"/> |
| 25 | + <uncheckOption selector="{{AdminShippingMethodUPSSection.carriersUPSTypeSystem}}" |
| 26 | + stepKey="unCheckTypeSystem"/> |
| 27 | + <selectOption selector="{{AdminShippingMethodUPSSection.carriersUpsType}}" |
| 28 | + userInput="UPS_REST" |
| 29 | + stepKey="selectRestOption"/> |
| 30 | + <uncheckOption selector="{{AdminShippingMethodUPSSection.liveAccountCheckbox}}" |
| 31 | + stepKey="unCheckLiveAccountCheckbox"/> |
| 32 | + <selectOption selector="{{AdminShippingMethodUPSSection.liveAccountSelect}}" |
| 33 | + userInput="{{accountMode}}" |
| 34 | + stepKey="selectAccountMode"/> |
| 35 | + <uncheckOption selector="{{AdminShippingMethodUPSSection.carriersUpsGatewayRestUrlSystem}}" |
| 36 | + stepKey="unCheckGatewayRestUrlSystem"/> |
| 37 | + <fillField selector="{{AdminShippingMethodUPSSection.carriersUpsGatewayRestUrl}}" |
| 38 | + userInput="{{gatewayUrl}}" |
| 39 | + stepKey="enterGateWayRestUrl"/> |
| 40 | + <fillField selector="{{AdminShippingMethodUPSSection.username}}" |
| 41 | + userInput="{{username}}" |
| 42 | + stepKey="enterUsername"/> |
| 43 | + <fillField selector="{{AdminShippingMethodUPSSection.password}}" |
| 44 | + userInput="{{password}}" |
| 45 | + stepKey="enterPassword"/> |
| 46 | + <fillField selector="{{AdminShippingMethodUPSSection.shipperNumberInput}}" |
| 47 | + userInput="{{shipperNumber}}" |
| 48 | + stepKey="enterShipperNumber"/> |
| 49 | + <click selector="{{AdminConfigSection.saveButton}}" stepKey="saveConfig"/> |
| 50 | + <waitForText selector="{{AdminMessagesSection.success}}" |
| 51 | + userInput="You saved the configuration." |
| 52 | + stepKey="assertConfigurationSaved"/> |
| 53 | + </actionGroup> |
| 54 | +</actionGroups> |
0 commit comments