Skip to content

Commit 1039f37

Browse files
shanthiManjusha
authored andcommitted
ACQE-4569
1 parent 586ae9d commit 1039f37

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

app/code/Magento/Catalog/Test/Mftf/Section/AdminProductAttributeGridSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<element name="scopeColumn" type="text" selector="//div[@id='attributeGrid']//td[contains(@class,'a-center col-is_global')]"/>
2424
<element name="isSearchableColumn" type="text" selector="//div[@id='attributeGrid']//td[contains(@class,'a-center col-is_searchable')]"/>
2525
<element name="isComparableColumn" type="text" selector="//div[@id='attributeGrid']//td[contains(@class,'a-center col-is_comparable')]"/>
26+
<element name="addSelected" type="button" selector="//*[contains(text(),'Add Selected')]" timeout="30"/>
2627
</section>
2728
</sections>
2829

app/code/Magento/Catalog/Test/Mftf/Test/SavingCustomAttributeValuesUsingUITest.xml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,28 +89,24 @@
8989
<click stepKey="clickonFirstRow" selector="{{AdminProductAddAttributeModalSection.firstRowCheckBox}}"/>
9090
<click stepKey="clickOnAddSelected" selector="{{AdminProductAttributeGridSection.addSelected}}"/>
9191
<waitForPageLoad stepKey="waitForAttributeAdded2"/>
92-
93-
<!--<actionGroup ref="FilterProductAttributeByAttributeCodeActionGroup" stepKey="filterByAttributeCode">
94-
<argument name="ProductAttributeCode" value="$$createAttribute.attribute_code$$"/>
95-
</actionGroup>-->
9692
<!-- Expand 'Attributes' tab -->
9793
<actionGroup ref="AdminExpandProductAttributesTabActionGroup" stepKey="expandAttributesTab"/>
9894
<!-- Check created attribute presents in the 'Attributes' tab -->
9995
<seeElement selector="{{AdminProductAttributesSection.attributeDropdownByCode(multiselectProductAttribute.attribute_code)}}" stepKey="assertAttributeIsPresentInTab"/>
10096
<!-- Select attribute options -->
101-
<!--<selectOption selector="{{AdminProductAttributesSection.attributeDropdownByCode(multiselectProductAttribute.attribute_code)}}" parameterArray="multiselectProductAttribute.option1_admin" stepKey="selectAttributeOptions"/>-->
10297
<selectOption selector="{{AdminProductAttributesSection.attributeDropdownByCode(multiselectProductAttribute.attribute_code)}}" userInput="{{multiselectProductAttribute.option1_admin}}" stepKey="selectProduct1AttributeOption"/>
10398
<!-- Save product -->
10499
<actionGroup ref="SaveProductFormActionGroup" stepKey="saveProductForm"/>
105-
100+
<!-- Go to Storefront and search for product-->
106101
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToFrontPage"/>
107102
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="searchStorefront">
108103
<argument name="phrase" value="$createSimpleProduct.name$"/>
109104
</actionGroup>
105+
<!-- Assert custom Attribute in Layered Navigation-->
110106
<waitForElementVisible selector="{{StorefrontCategorySidebarSection.filterOptionsTitle(multiselectProductAttribute.attribute_code)}}" stepKey="waitForAttributeVisible"/>
111107
<conditionalClick selector="{{StorefrontCategorySidebarSection.filterOptionsTitle(multiselectProductAttribute.attribute_code)}}" dependentSelector="{{StorefrontCategorySidebarSection.activeFilterOptions}}" visible="false" stepKey="clickToExpandAttribute"/>
112108
<waitForElementVisible selector="{{StorefrontCategorySidebarSection.activeFilterOptions}}" stepKey="waitForAttributeOptionsVisible"/>
113-
<wait time="90" stepKey="Wait"/>
109+
<wait time="10" stepKey="Wait"/>
114110
<see selector="{{StorefrontCategorySidebarSection.filterOption}}" userInput="{{multiselectProductAttribute.option1_frontend}}" stepKey="seeOption2"/>
115111
</test>
116112
</tests>

0 commit comments

Comments
 (0)