<?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="AdminSelectStoreViewOnCreateOrderPageIfRequestedActionGroup">
        <annotations>
            <description>Clicks a StoreView name if the "Please select a store" input appears on the Create Order page</description>
        </annotations>
        <arguments>
            <argument name="storeView" type="entity" defaultValue="_defaultStore"/>
        </arguments>
        
        <conditionalClick selector="{{AdminOrderStoreScopeTreeSection.storeOption(storeView.name)}}" dependentSelector="{{AdminOrderStoreScopeTreeSection.storeOption(storeView.name)}}" visible="true" stepKey="selectStoreViewIfAppears"/>
        <waitForPageLoad stepKey="waitForPageLoaded"/>

    </actionGroup>
</actionGroups>
