Skip to content

Commit c7d32f2

Browse files
committed
ACQE-6901: Create Text Swatch from Stores ->Attributes section: Product
Removed extra space in AG and added valuable name parameter for a locator
1 parent f726e48 commit c7d32f2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AdminAddTextSwatchForStoreViewActionGroup.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@
1616
<argument name="position" type="string"/>
1717
<argument name="swatchName" type="string"/>
1818
<argument name="swatchDescription" type="string"/>
19-
2019
</arguments>
2120
<waitForElementVisible selector="{{AttributeManageSwatchSection.textSwatchDefaultStoreSwatchValue(position)}}" stepKey="waitForSwatchTextBoxForAdminToVisible"/>
2221
<fillField selector="{{AttributeManageSwatchSection.textSwatchDefaultStoreSwatchValue(position)}}" userInput="{{swatchName}}" stepKey="fillSwatchForStoreView"/>
2322
<waitForElementVisible selector="{{AttributeManageSwatchSection.textSwatchDefaultStoreDescriptionValue(position)}}" stepKey="waitForDescriptionTextBoxForAdminToVisible"/>
2423
<fillField selector="{{AttributeManageSwatchSection.textSwatchDefaultStoreDescriptionValue(position)}}" userInput="{{swatchDescription}}" stepKey="fillDescriptionForStoreView"/>
2524
</actionGroup>
26-
</actionGroups>
25+
</actionGroups>

app/code/Magento/ConfigurableProduct/Test/Mftf/Section/StorefrontProductInfoMainSection.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
<element name="attributeOptionByAttributeID" type="select" selector="//div[@class='fieldset']//div[//span[text()='{{attribute_code}}']]//option[text()='{{optionName}}']" parameterized="true"/>
2626
<element name="tierPriceExcludingPrice" type="text" selector=".item [data-label='Excl. Tax']"/>
2727
<element name="tierPriceContainsExcludingTax" type="text" selector=".item .price"/>
28-
<element name="productSwatchText" type="text" selector="//div[@class='swatch-option text' and contains(text(),'{{var1}}')]" parameterized="true"/>
28+
<element name="productSwatchText" type="text" selector="//div[@class='swatch-option text' and contains(text(),'{{swatchName}}')]" parameterized="true"/>
2929
</section>
30-
</sections>
30+
</sections>

0 commit comments

Comments
 (0)