Skip to content

Commit fdf654c

Browse files
committed
AC-7003: Mftf test coverage fixes
1 parent f8bdaea commit fdf654c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
<element name="systemValuePostcode" type="checkbox" selector="#row_shipping_origin_postcode input[type='checkbox']"/>
1818
<element name="PostcodeValue" type="input" selector="#row_shipping_origin_postcode input[type='text']"/>
1919
<element name="systemValueShippingPolicy" type="checkbox" selector="#row_shipping_shipping_policy_enable_shipping_policy input[type='checkbox']"/>
20+
<element name="shippingPolicyParameters" type="block" selector="#shipping_shipping_policy-head" timeout="30"/>
21+
<element name="shippingPolicyParametersOpened" type="block" selector="#shipping_shipping_policy-head.open" timeout="30"/>
2022
<element name="shippingPolicy" type="block" selector="#row_shipping_shipping_policy_shipping_policy_content"/>
2123
<element name="dropdownShippingPolicy" type="select" selector="#row_shipping_shipping_policy_enable_shipping_policy select"/>
2224
</section>

app/code/Magento/Shipping/Test/Mftf/Test/AdminCheckShippingPolicyParamsInDifferentScopes.xml renamed to app/code/Magento/Shipping/Test/Mftf/Test/AdminCheckShippingPolicyParamsInDifferentScopesTest.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11-
<test name="AdminCheckShippingPolicyParamsInDifferentScopes">
11+
<test name="AdminCheckShippingPolicyParamsInDifferentScopesTest">
1212
<annotations>
1313
<features value="Shipping"/>
1414
<stories value="Shipping Policy Parameters"/>
@@ -27,9 +27,8 @@
2727

2828
<amOnPage url="{{AdminShippingSettingsPage.url}}" stepKey="goToAdminShippingPage"/>
2929
<waitForPageLoad stepKey="waitForShippingConfigLoad"/>
30-
30+
<conditionalClick selector="{{AdminShippingSettingsConfigSection.shippingPolicyParameters}}" dependentSelector="{{AdminShippingSettingsConfigSection.shippingPolicyParametersOpened}}" visible="false" stepKey="openShippingPolicySettings"/>
3131
<uncheckOption selector="{{AdminShippingSettingsConfigSection.systemValueShippingPolicy}}" stepKey="disableUseDefaultCondition"/>
32-
3332
<selectOption selector="{{AdminShippingSettingsConfigSection.dropdownShippingPolicy}}" userInput="Yes" stepKey="SelectApplyCustomShippingPolicy"/>
3433

3534
<!-- Save the settings -->
@@ -40,7 +39,7 @@
4039
<actionGroup ref="SwitchToTheNewStoreViewActionGroup" stepKey="SwitchNewStoreView">
4140
<argument name="storeViewName" value="{{_defaultStore.name}}"/>
4241
</actionGroup>
43-
<seeElement selector="{{AdminShippingSettingsConfigSection.ShippingPolicy}}" stepKey="seeShippingPolicy"/>
42+
<seeElement selector="{{AdminShippingSettingsConfigSection.shippingPolicy}}" stepKey="seeShippingPolicy"/>
4443

4544
<!--Switch to Store view 1-->
4645
<actionGroup ref="SwitchToTheNewStoreViewActionGroup" stepKey="SwitchtoDefaultConfig">
@@ -58,7 +57,7 @@
5857
<actionGroup ref="SwitchToTheNewStoreViewActionGroup" stepKey="SwitchNewStoreView2">
5958
<argument name="storeViewName" value="{{_defaultStore.name}}"/>
6059
</actionGroup>
61-
<seeElement selector="{{AdminShippingSettingsConfigSection.ShippingPolicy}}" stepKey="seeShippingPolicy2"/>
60+
<seeElement selector="{{AdminShippingSettingsConfigSection.shippingPolicy}}" stepKey="seeShippingPolicy2"/>
6261

6362
</test>
6463
</tests>

0 commit comments

Comments
 (0)