<?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="AssertSwatchColorActionGroup">
        <annotations>
            <description>Validates that the provided Color Picker contains the provided Style.</description>
        </annotations>
        <arguments>
            <argument name="nthSwatch" type="string" defaultValue="1"/>
            <argument name="expectedStyle" type="string" defaultValue="background: rgb(0, 0, 0);"/>
        </arguments>

        <grabAttributeFrom selector="{{AdminManageSwatchSection.nthSwatch(nthSwatch)}}" userInput="style" stepKey="grabStyle1"/>
        <assertEquals stepKey="assertStyle1">
            <actualResult type="string">{$grabStyle1}</actualResult>
            <expectedResult type="string">{{expectedStyle}}</expectedResult>
        </assertEquals>
    </actionGroup>
</actionGroups>
