Skip to content

Commit 3370c81

Browse files
committed
MAGETWO-91628: Bundle product price doubled when switching currency
- Add minor changes in test
1 parent ca3f8ba commit 3370c81

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

app/code/Magento/Bundle/Test/Mftf/Test/CurrencyChangingBundleProductInCartTest.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,16 @@
2828
<argument name="product" value="BundleProduct"/>
2929
</actionGroup>
3030
<actionGroup ref="AdminClearFiltersActionGroup" stepKey="ClearFiltersAfter"/>
31+
<waitForPageLoad stepKey="waitForClearFilter"/>
3132
<!--Clear Configs-->
3233
<amOnPage url="{{AdminLoginPage.url}}" stepKey="navigateToAdmin"/>
3334
<waitForPageLoad stepKey="waitForAdminLoginPageLoad"/>
3435
<amOnPage url="{{ConfigCurrencySetupPage.url}}" stepKey="navigateToConfigCurrencySetupPage"/>
3536
<waitForPageLoad stepKey="waitForConfigCurrencySetupPageForUnselectEuroCurrency"/>
3637
<unselectOption selector="{{CurrencySetupSection.allowCurrencies}}" userInput="Euro" stepKey="unselectEuro"/>
38+
<scrollToTopOfPage stepKey="scrollToTopOfPage"/>
39+
<click selector="{{CurrencySetupSection.currencyOptions}}" stepKey="closeOptions"/>
40+
<waitForPageLoad stepKey="waitForCloseOptions"/>
3741
<click stepKey="saveUnselectedConfigs" selector="{{AdminConfigSection.saveButton}}"/>
3842
<amOnPage url="{{AdminLogoutPage.url}}" stepKey="logout"/>
3943
<deleteData createDataKey="simpleProduct1" stepKey="deleteSimpleProduct1"/>
@@ -57,6 +61,8 @@
5761
<actionGroup ref="saveProductForm" stepKey="saveProduct"/>
5862
<amOnPage url="{{ConfigCurrencySetupPage.url}}" stepKey="navigateToConfigCurrencySetupPage"/>
5963
<waitForPageLoad stepKey="waitForConfigCurrencySetupPage"/>
64+
<conditionalClick selector="{{CurrencySetupSection.currencyOptions}}" dependentSelector="{{CurrencySetupSection.allowCurrencies}}" visible="false" stepKey="openOptions"/>
65+
<waitForPageLoad stepKey="waitForOptions"/>
6066
<selectOption selector="{{CurrencySetupSection.allowCurrencies}}" parameterArray="['Euro', 'US Dollar']" stepKey="selectCurrencies"/>
6167
<click stepKey="saveConfigs" selector="{{AdminConfigSection.saveButton}}"/>
6268
<!-- Go to storefront BundleProduct -->

app/code/Magento/CurrencySymbol/Test/Mftf/Section/CurrencySetupSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1111
<section name="CurrencySetupSection">
1212
<element name="allowCurrencies" type="select" selector="#currency_options_allow"/>
13+
<element name="currencyOptions" type="select" selector="#currency_options-head"/>
1314
</section>
1415
</sections>

0 commit comments

Comments
 (0)