Skip to content

Commit fe27fb2

Browse files
ACQE-6375 : Registered Checkout Using PayPal Smart Button and Flat Rate
Added product sender, reciever and message selector
1 parent 434741f commit fe27fb2

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,8 @@
3636
<element name="ProductImageByNameAndSrc" type="text" selector="//main//li[.//a[contains(text(), '{{var1}}')]]//img[contains(@src, '{{src}}')]" parameterized="true"/>
3737
<element name="ProductStockUnavailable" type="text" selector="//*[text()='Out of stock']"/>
3838
<element name="listedProductOnProductPage" type="block" selector="//div[contains(@aria-labelledBy,'{{attribute_code}}')]//div[@aria-label='{{attribute_name}}']" parameterized="true"/>
39+
<element name="productSenderName" type="input" selector="#giftcard_sender_name"/>
40+
<element name="productRecipientName" type="input" selector="#giftcard_recipient_name"/>
41+
<element name="productMessage" type="input" selector="#giftcard-message"/>
3942
</section>
4043
</sections>

app/code/Magento/Paypal/Test/Mftf/ActionGroup/StorefrontFillGiftCardPhysicalProductFormActionGroup.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
<argument name="recipient" type="entity" defaultValue="John_Smith_Customer"/>
1515
<argument name="message" type="string" defaultValue=""/>
1616
</arguments>
17-
<waitForElementClickable selector="{{StorefrontProductInfoMainSection.giftCardSenderName}}" stepKey="waitForSenderNameField"/>
18-
<fillField selector="{{StorefrontProductInfoMainSection.giftCardSenderName}}" userInput="{{sender.fullname}}" stepKey="fillSenderNameField"/>
19-
<waitForElementClickable selector="{{StorefrontProductInfoMainSection.giftCardRecipientName}}" stepKey="waitForRecipientNameField"/>
20-
<fillField selector="{{StorefrontProductInfoMainSection.giftCardRecipientName}}" userInput="{{recipient.fullname}}" stepKey="fillRecipientNameField"/>
21-
<waitForElementClickable selector="{{StorefrontProductInfoMainSection.giftCardMessage}}" stepKey="waitForMessageField"/>
22-
<fillField selector="{{StorefrontProductInfoMainSection.giftCardMessage}}" userInput="{{message}}" stepKey="fillMessageField"/>
17+
<waitForElementClickable selector="{{StorefrontCategoryProductSection.productSenderName}}" stepKey="waitForSenderNameField"/>
18+
<fillField selector="{{StorefrontCategoryProductSection.productSenderName}}" userInput="{{sender.fullname}}" stepKey="fillSenderNameField"/>
19+
<waitForElementClickable selector="{{StorefrontCategoryProductSection.productRecipientName}}" stepKey="waitForRecipientNameField"/>
20+
<fillField selector="{{StorefrontCategoryProductSection.productRecipientName}}" userInput="{{recipient.fullname}}" stepKey="fillRecipientNameField"/>
21+
<waitForElementClickable selector="{{StorefrontCategoryProductSection.productMessage}}" stepKey="waitForMessageField"/>
22+
<fillField selector="{{StorefrontCategoryProductSection.productMessage}}" userInput="{{message}}" stepKey="fillMessageField"/>
2323
</actionGroup>
2424
</actionGroups>

0 commit comments

Comments
 (0)