<?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="AdminDisableMagentoReviews">
        <waitForPageLoad stepKey="waitForMagentoReviewPageToLoad"/>
        <amOnPage url="admin/admin/system_config/edit/section/catalog/" stepKey="navigateToMagentoReviewConfiguration"/>
        <conditionalClick stepKey="ClickToDisableReviewSettings" selector="{{AdminMagentoReviewConfigurationSection.ReviewSettings}}" dependentSelector="{{AdminMagentoReviewConfigurationSection.ReviewEnabled}}" visible="false"/>
        <uncheckOption selector="{{AdminMagentoReviewConfigurationSection.ReviewEnabledInherit}}" stepKey="UncheckMagentoReviews"/>
        <selectOption userInput="0" selector="{{AdminMagentoReviewConfigurationSection.ReviewEnabled}}" stepKey="EnableMagentoReviews"/>
        <click stepKey="ClickOnSaveConfig" selector="{{AdminMagentoReviewConfigurationSection.SaveConfiguration}}"/>
        <waitForPageLoad stepKey="waitForSaveConfig"/>
        <seeElement selector="{{AdminMagentoReviewConfigurationSection.SavedConfiguration}}" stepKey="checkConfigurationSaved"/>
    </actionGroup>
</actionGroups>
