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

<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
    <test name="StorefrontAdvanceCatalogSearchGroupedProductBySkuWithHyphenTest" extends="AdvanceCatalogSearchSimpleProductBySkuTest">
        <annotations>
            <features value="GroupedProduct"/>
            <stories value="Advanced Catalog Product Search for all product types"/>
            <title value="Guest customer should be able to advance search Grouped product with product sku that in camelCase format"/>
            <description value="Guest customer should be able to advance search Grouped product with product sku that in camelCase format"/>
            <severity value="MAJOR"/>
            <testCaseId value="MC-20519"/>
            <group value="GroupedProduct"/>
            <group value="SearchEngineMysql"/>
        </annotations>
        <before>
            <createData entity="ApiProductWithDescription" stepKey="simple1" before="simple2"/>
            <createData entity="ApiProductWithDescription" stepKey="simple2" before="product"/>
            <createData entity="ApiGroupedProduct" stepKey="product"/>
            <createData entity="OneSimpleProductLink" stepKey="addProductOne">
                <requiredEntity createDataKey="product"/>
                <requiredEntity createDataKey="simple1"/>
            </createData>
            <updateData entity="OneMoreSimpleProductLink" createDataKey="addProductOne" stepKey="addProductTwo">
                <requiredEntity createDataKey="product"/>
                <requiredEntity createDataKey="simple2"/>
            </updateData>
            <magentoCLI command="indexer:reindex" stepKey="reindex"/>
            <magentoCLI command="cache:flush" stepKey="flushCache"/>
        </before>
        <after>
            <deleteData createDataKey="simple1" stepKey="deleteSimple1" before="deleteSimple2"/>
            <deleteData createDataKey="simple2" stepKey="deleteSimple2" before="delete"/>
        </after>
    </test>
</tests>
