<?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="ClearPageCacheActionGroup">
        <annotations>
            <description>Goes to the Admin Cache Management page. Selects 'Refresh'. Checks the 'Page Cache' row. Clicks on Submit.</description>
        </annotations>

        <amOnPage url="{{AdminCacheManagementPage.url}}" stepKey="goToCacheManagementPage"/>
        <waitForPageLoad stepKey="waitForPageLoad"/>
        <click selector="{{AdminCacheManagementSection.actionDropDown}}" stepKey="actionSelection"/>
        <click selector="{{AdminCacheManagementSection.refreshOption}}" stepKey="selectRefreshOption"/>
        <click selector="{{AdminCacheManagementSection.pageCacheRowCheckbox}}" stepKey="selectPageCacheRowCheckbox"/>
        <click selector="{{AdminCacheManagementSection.submit}}" stepKey="clickSubmit"/>
    </actionGroup>
</actionGroups>
