Skip to content

Commit e994577

Browse files
committed
MC-23546: Child Configurable product does not save disabled status via API
1 parent 030bdad commit e994577

File tree

1 file changed

+0
-97
lines changed

1 file changed

+0
-97
lines changed

app/code/Magento/CatalogSearch/Test/Mftf/Test/SearchEntityResultsTest.xml

Lines changed: 0 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -603,101 +603,4 @@
603603
<argument name="value" value="$simpleProduct1.name$"/>
604604
</actionGroup>
605605
</test>
606-
607-
<test name="QuickSearchConfigurableChildren">
608-
<annotations>
609-
<stories value="Search Product on Storefront"/>
610-
<title value="Deprecated. User should be able to use Quick Search to a configurable product's child products"/>
611-
<description value="Use Quick Search to find a configurable product with enabled/disable children"/>
612-
<severity value="MAJOR"/>
613-
<testCaseId value="MC-14798"/>
614-
<group value="CatalogSearch"/>
615-
<group value="mtf_migrated"/>
616-
<skip>
617-
<issueId value="DEPRECATED">Use StorefrontQuickSearchConfigurableChildrenTest instead.</issueId>
618-
</skip>
619-
</annotations>
620-
<before>
621-
<!-- Create the category -->
622-
<createData entity="ApiCategory" stepKey="createCategory"/>
623-
624-
<!-- Create blank AttributeSet-->
625-
<createData entity="CatalogAttributeSet" stepKey="attributeSet"/>
626-
627-
<!-- Create an attribute with two options to be used in the first child product -->
628-
<createData entity="hiddenDropdownAttributeWithOptions" stepKey="createConfigProductAttribute"/>
629-
<createData entity="productAttributeOption1" stepKey="createConfigProductAttributeOption1">
630-
<requiredEntity createDataKey="createConfigProductAttribute"/>
631-
</createData>
632-
633-
<!-- Assign attribute to set -->
634-
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
635-
<actionGroup ref="goToAttributeGridPage" stepKey="goToPage"/>
636-
<actionGroup ref="GoToAttributeSetByNameActionGroup" stepKey="goToSet">
637-
<argument name="name" value="$attributeSet.attribute_set_name$"/>
638-
</actionGroup>
639-
<actionGroup ref="AssignAttributeToGroupActionGroup" stepKey="assignToAttributeSetAndGroup">
640-
<argument name="group" value="Product Details"/>
641-
<argument name="attribute" value="$createConfigProductAttribute.attribute_code$"/>
642-
</actionGroup>
643-
<actionGroup ref="SaveAttributeSetActionGroup" stepKey="savePage"/>
644-
645-
<!-- Get the first option of the attribute we created -->
646-
<getData entity="ProductAttributeOptionGetter" index="1" stepKey="getConfigAttributeOption1">
647-
<requiredEntity createDataKey="createConfigProductAttribute"/>
648-
</getData>
649-
650-
<!-- Create a simple product,give it the attributeSet and attribute with the first option -->
651-
<createData entity="ApiSimpleOneHidden" stepKey="createConfigChildProduct1">
652-
<field key="attribute_set_id">$attributeSet.attribute_set_id$</field>
653-
<requiredEntity createDataKey="createConfigProductAttribute"/>
654-
<requiredEntity createDataKey="getConfigAttributeOption1"/>
655-
</createData>
656-
<updateData entity="ApiSimpleProductUpdateDescription" stepKey="updateSimpleProduct1" createDataKey="createConfigChildProduct1"/>
657-
658-
<!-- Create the configurable product, give it the attributeSet and add it to the category -->
659-
<createData entity="ApiConfigurableProduct" stepKey="createConfigProduct">
660-
<field key="attribute_set_id">$attributeSet.attribute_set_id$</field>
661-
<requiredEntity createDataKey="createCategory"/>
662-
</createData>
663-
<!-- Create the configurable product -->
664-
<createData entity="ConfigurableProductOneOption" stepKey="createConfigProductOption">
665-
<requiredEntity createDataKey="createConfigProduct"/>
666-
<requiredEntity createDataKey="createConfigProductAttribute"/>
667-
<requiredEntity createDataKey="getConfigAttributeOption1"/>
668-
</createData>
669-
<!-- Add the first simple product to the configurable product -->
670-
<createData entity="ConfigurableProductAddChild" stepKey="createConfigProductAddChild1">
671-
<requiredEntity createDataKey="createConfigProduct"/>
672-
<requiredEntity createDataKey="createConfigChildProduct1"/>
673-
</createData>
674-
675-
<!-- Perform reindex and flush cache -->
676-
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
677-
<magentoCLI command="cache:flush" stepKey="flushCache"/>
678-
</before>
679-
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToFrontPage"/>
680-
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="searchStorefront">
681-
<argument name="phrase" value="$createConfigProduct.name$"/>
682-
</actionGroup>
683-
<actionGroup ref="StorefrontQuickSearchCheckProductNameInGridActionGroup" stepKey="seeProductInGrid">
684-
<argument name="productName" value="$createConfigProduct.name$"/>
685-
<argument name="index" value="1"/>
686-
</actionGroup>
687-
688-
<!-- Disable Child Product -->
689-
<actionGroup ref="GoToProductPageViaIDActionGroup" stepKey="goToChildProduct">
690-
<argument name="productId" value="$createConfigChildProduct1.id$"/>
691-
</actionGroup>
692-
<actionGroup ref="ToggleProductEnabledActionGroup" stepKey="disableProduct"/>
693-
<actionGroup ref="SaveProductFormActionGroup" stepKey="saveProduct"/>
694-
695-
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToFrontPageAgain"/>
696-
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="searchStorefrontAgain">
697-
<argument name="phrase" value="$createConfigProduct.name$"/>
698-
</actionGroup>
699-
<actionGroup ref="StorefrontQuickSearchCheckProductNameNotInGridActionGroup" stepKey="dontSeeProductAnymore">
700-
<argument name="productName" value="$createConfigProduct.name$"/>
701-
</actionGroup>
702-
</test>
703606
</tests>

0 commit comments

Comments
 (0)