<?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="ValidateContentTypesStyleDoesNotEqualExpectedStyleActionGroup">
        <annotations>
            <description>Content types expected style does not equal the computed style</description>
        </annotations>
        <arguments>
            <argument name="selector" defaultValue="" type="string"/>
            <argument name="notExpectedProperty" defaultValue="" type="string"/>
            <argument name="cssProperty" defaultValue="backgroundColor" type="string"/>
        </arguments>
        <executeJS function="return window.getComputedStyle(document.evaluate('{{selector}}', document.body).iterateNext()).{{cssProperty}}.replace(/px/g, &quot;&quot;)" stepKey="fetchedProperty"/>
        <assertNotEquals stepKey="propertyIsNotEqualsAsExpected">
            <expectedResult type="string">{{notExpectedProperty}}</expectedResult>
            <actualResult type="variable">fetchedProperty</actualResult>
        </assertNotEquals>
    </actionGroup>
</actionGroups>
