<?xml version="1.0" encoding="UTF-8"?>
<!--
 /**
  * Copyright © Magento, Inc. All rights reserved.
  * See COPYING.txt for license details.
  */
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
    <actionGroup name="AssertPayPalButtonLayoutActionGroup">
        <annotations>
            <description>Assert Paypal button layout when user customize button</description>
        </annotations>
        <arguments>
            <argument name="label" type="string" defaultValue="Buy Now"/>
            <argument name="layout" type="string" defaultValue="Horizontal"/>
            <argument name="shape" type="string" defaultValue="Pill"/>
            <argument name="color" type="string" defaultValue="Gold"/>
        </arguments>

        <seeElement selector="{{StorefrontPayPalSmartButtonStylesSection.labelText(label)}}" stepKey="seeButtonLabelText"/>
        <seeElement selector="{{CheckoutPaymentSection.PayPalBtn}}{{StorefrontPayPalSmartButtonStylesSection.layout(layout)}}" stepKey="seeButtonLayout"/>
        <seeElement selector="{{CheckoutPaymentSection.PayPalBtn}}{{StorefrontPayPalSmartButtonStylesSection.shape(shape)}}" stepKey="seeButtonShape"/>
        <seeElement selector="{{CheckoutPaymentSection.PayPalBtn}}{{StorefrontPayPalSmartButtonStylesSection.color(color)}}"  stepKey="seeButtonColor"/>
    </actionGroup>
</actionGroups>
