<?xml version="1.0" encoding="UTF-8"?>
<!--
 /**
  * Copyright © Magento, Inc. All rights reserved.
  * See COPYING.txt for license details.
  */
-->

<suites xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:mftf:Suite/etc/suiteSchema.xsd">
  <suite name="yotpoSuite">
    <before>
      <actionGroup ref="LoginAsAdmin" stepKey="LoginAsAdmin"/>
      <actionGroup ref="EnableYotpoPlugin" stepKey="enableYotpoPlugin">
        <argument name="storeView" value="_defaultStore.name"/>
      </actionGroup>
    </before>

    <after>
      <actionGroup ref="LoginAsAdmin" stepKey="LoginAsAdmin"/>
      <actionGroup ref="DisableYotpoPlugin" stepKey="DisableYotpoPlugin"/>
      <amOnPage url="{{AdminLogoutPage.url}}" stepKey="amOnLogoutPage"/>
    </after>

    <include>
      <group name="Yotpo"/>
    </include>
  </suite>
</suites>