<?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="AssertAdminSignInWithAdobeIdTestActionGroup">
        <annotations>
            <description>Check for Sign in with Adobe ID button.</description>
        </annotations>

        <seeElement selector="{{AdminSignInWithAdobeIdSection.signInButton}}"
                    stepKey="assertAdminSignInWithAdobeIdButtonElement"/>

        <seeElement selector="{{AdminSignInWithAdobeIdSection.organizationNoteLeft}}"
                    stepKey="assertAdminSignInWithAdobeIdOrganizationNoteLeft"/>
        <grabTextFrom selector="{{AdminSignInWithAdobeIdSection.organizationNoteLeft}}"
                      stepKey="adminSignInWithAdobeIdOrganizationNoteLeft"/>
        <assertStringContainsString stepKey="assertNoteLeftContents">
            <expectedResult type="string">{{AdobeImsNotesData.note_left}}</expectedResult>
            <actualResult type="string">{$adminSignInWithAdobeIdOrganizationNoteLeft}</actualResult>
        </assertStringContainsString>

        <seeElement selector="{{AdminSignInWithAdobeIdSection.organizationNoteRight}}"
                    stepKey="assertAdminSignInWithAdobeIdOrganizationNoteRight"/>
        <grabTextFrom selector="{{AdminSignInWithAdobeIdSection.organizationNoteRight}}"
                      stepKey="adminSignInWithAdobeIdOrganizationNoteRight"/>
        <assertStringContainsString stepKey="assertNoteRightContents">
            <expectedResult type="string">{{AdobeImsNotesData.note_right}}</expectedResult>
            <actualResult type="string">{$adminSignInWithAdobeIdOrganizationNoteRight}</actualResult>
        </assertStringContainsString>
    </actionGroup>
</actionGroups>
