Skip to content

Commit 967f386

Browse files
[ACQE-5111] Replacing selector path for buttonShippingHere to fix StorefrontInlineTranslationOnCheckoutTest
1 parent bbc119a commit 967f386

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

app/code/Magento/Translation/Test/Mftf/Section/InlineTranslationModeCheckoutSection.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
<!-- Shipping Step -->
1313
<element name="progressBarActive" type="text" selector=".opc-progress-bar ._active span"/>
1414
<element name="stepTitleShipping" type="text" selector="#shipping div.step-title"/>
15-
<element name="buttonShippingHere" type="button" selector="button.action-select-shipping-item span"/>
16-
<element name="buttonShipHere" type="button" selector="div.shipping-address-item.not-selected-item button.action-select-shipping-item span"/>
15+
<element name="buttonShippingHere" type="button" selector="div.shipping-address-item.not-selected-item button.action-select-shipping-item span"/>
1716
<element name="buttonNewAddress" type="button" selector=".new-address-popup button span"/>
1817
<element name="titleShippingMethod" type="text" selector=".checkout-shipping-method .step-title"/>
1918
<element name="buttonNext" type="button" selector="#shipping-method-buttons-container button.primary span"/>

app/code/Magento/Translation/Test/Mftf/Test/StorefrontInlineTranslationOnCheckoutTest.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,13 @@
242242
<actionGroup ref="StorefrontSubmitInlineTranslationFormActionGroup" stepKey="translateShippingAddressTitle3"/>
243243

244244
<!-- Check button "Ship Here" -->
245-
<waitForElementVisible selector="{{InlineTranslationModeCheckoutSection.buttonShipHere}}" stepKey="waitForButtonShipHere"/>
245+
<waitForElementVisible selector="{{InlineTranslationModeCheckoutSection.buttonShippingHere}}" stepKey="waitForButtonShipHere"/>
246246
<actionGroup ref="AssertElementInTranslateInlineModeActionGroup" stepKey="assertButtonShipHere">
247-
<argument name="elementSelector" value="{{InlineTranslationModeCheckoutSection.buttonShipHere}}"/>
247+
<argument name="elementSelector" value="{{InlineTranslationModeCheckoutSection.buttonShippingHere}}"/>
248248
</actionGroup>
249249

250250
<actionGroup ref="StorefrontOpenInlineTranslationPopupActionGroup" stepKey="translateButtonShipHere1">
251-
<argument name="elementSelector" value="{{InlineTranslationModeCheckoutSection.buttonShipHere}}"/>
251+
<argument name="elementSelector" value="{{InlineTranslationModeCheckoutSection.buttonShippingHere}}"/>
252252
</actionGroup>
253253

254254
<actionGroup ref="StorefrontFillCustomTranslationFieldActionGroup" stepKey="translateButtonShipHere2">
@@ -552,7 +552,7 @@
552552
<see userInput="Shipping address Translated" selector="{{InlineTranslationModeCheckoutSection.stepTitleShipping}}" stepKey="seeTranslateShippingAddressTitle"/>
553553

554554
<!-- Check translate button "Ship Here" -->
555-
<see userInput="Ship Here Translated" selector="{{InlineTranslationModeCheckoutSection.buttonShipHere}}" stepKey="seeTranslateButtonShipHere"/>
555+
<see userInput="Ship Here Translated" selector="{{InlineTranslationModeCheckoutSection.buttonShippingHere}}" stepKey="seeTranslateButtonShipHere"/>
556556

557557
<!-- Check translate button "+ New Address"-->
558558
<see userInput="New Address Translated" selector="{{InlineTranslationModeCheckoutSection.buttonNewAddress}}" stepKey="seeTranslateButtonNewAddress"/>

0 commit comments

Comments
 (0)