Skip to content

Commit 3bc3542

Browse files
committed
ACQE-8258: UPS backward compliance test - verify with unsupported weight unit for allowed countries
- Added scroll in action group and updated xpath in section file.
1 parent 51bc515 commit 3bc3542

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/code/Magento/Shipping/Test/Mftf/ActionGroup/AdminEnableUpsWithWeightUnitActionGroup.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
<argument name="shipping" defaultValue="UPSShippingMethod"/>
1414
<argument name="weight" type="string"/>
1515
</arguments>
16-
<waitForElementClickable selector="{{AdminShippingMethodUPSSection.weightUnitCheckbox}}" stepKey="waitForUnCheckWeightUnits" after="selectDebugToYes"/>
16+
<scrollTo selector="{{AdminShippingMethodUPSSection.weightUnitCheckbox}}" stepKey="scrollToWeightUnits" after="enterTrackingRestURl" />
17+
<waitForElementClickable selector="{{AdminShippingMethodUPSSection.weightUnitCheckbox}}" stepKey="waitForUnCheckWeightUnits" after="scrollToWeightUnits"/>
1718
<uncheckOption selector="{{AdminShippingMethodUPSSection.weightUnitCheckbox}}" stepKey="unSelectWeightUnits" after="waitForUnCheckWeightUnits"/>
1819
<selectOption selector="{{AdminShippingMethodUPSSection.weightUnitSelect}}" userInput="{{weight}}" stepKey="selectWeightUnit" after="unSelectWeightUnits"/>
1920
</actionGroup>

app/code/Magento/Shipping/Test/Mftf/Section/AdminShippingMethodUPSSection.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
<element name="containerCheckbox" type="checkbox" selector="//tr[@id='row_carriers_ups_container']//td//input[@id='carriers_ups_container_inherit']"/>
3737
<element name="destinationTypeSelect" type="select" selector="//tr[@id='row_carriers_ups_dest_type']//td//select[@id='carriers_ups_dest_type']"/>
3838
<element name="destinationTypeCheckbox" type="checkbox" selector="//tr[@id='row_carriers_ups_dest_type']//td//input[@id='carriers_ups_dest_type_inherit']"/>
39-
<element name="weightUnitSelect" type="select" selector="//select[@id='carriers_ups_unit_of_measure']"/>
40-
<element name="weightUnitCheckbox" type="checkbox" selector="//input[@id='carriers_ups_unit_of_measure_inherit']"/>
39+
<element name="weightUnitSelect" type="select" selector="//tr[@id='row_carriers_ups_unit_of_measure']//td//select[@id='carriers_ups_unit_of_measure']"/>
40+
<element name="weightUnitCheckbox" type="checkbox" selector="//tr[@id='row_carriers_ups_unit_of_measure']//td//input[@id='carriers_ups_unit_of_measure_inherit']"/>
4141
<element name="trackingURLCheckbox" type="checkbox" selector="//tr[@id='row_carriers_ups_tracking_url']//td//input[@id='carriers_ups_tracking_url_inherit']"/>
4242
<element name="trackingURLInput" type="input" selector="//tr[@id='row_carriers_ups_tracking_url']//td//input[@id='carriers_ups_tracking_url']"/>
4343
<element name="handlingFee" type="input" selector="//tr[@id='row_carriers_ups_handling_fee']//td//input[@id='carriers_ups_handling_fee']"/>

0 commit comments

Comments
 (0)