Skip to content

Commit 58444b4

Browse files
committed
ACP2E-1018: Wrong special price currency
- adding MFTF test
1 parent 96659fd commit 58444b4

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/AdminCheckProductListPriceAttributesTest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@
3434
<deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/>
3535
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
3636
<!-- Reindex invalidated indices after product attribute has been created/deleted -->
37-
<!-- <magentoCron groups="index" stepKey="reindexInvalidatedIndices"/>
38-
-->
37+
<magentoCron groups="index" stepKey="reindexInvalidatedIndices"/>
3938
</after>
4039

4140
<actionGroup ref="ToggleAdminProductGridColumnsDropdownActionGroup" stepKey="openColumnsDropdown"/>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11+
<test name="AdminCheckProductListPriceAttributesWithDifferentCurrencyTest" extends="AdminCheckProductListPriceAttributesTest">
12+
<annotations>
13+
<stories value="Check price attributes values on Admin Product List when different currency is used for Default Website"/>
14+
<title value="Check price attributes values on Admin Product List."/>
15+
<description value="Login as admin, create simple product, add cost, special price.
16+
Change Price to Website Scope. Change Currency to Default Website scope.
17+
Go to Admin
18+
Product List page filter grid by created product, add mentioned columns to grid, check values."/>
19+
<group value="catalog"/>
20+
<severity value="MAJOR"/>
21+
<testCaseId value="AC-6078"/>
22+
<useCaseId value="ACP2E-1018"/>
23+
</annotations>
24+
<before>
25+
<!-- Configure Stores -> Configuration -> Catalog -> Catalog -> Price Scope = Website -->
26+
<magentoCLI command="config:set catalog/price/scope 1" stepKey="setPriceScopeToWebsite" after="loginToAdminPanel" />
27+
<!-- Configure Stores -> Configuration -> General -> Currency Setup -> Currency Options -> Base Currency = Euro -->
28+
<magentoCLI command="config:set --scope website --scope-code base currency/options/base EUR" stepKey="setBaseCurrencyAsEuroToMainWebsite" after="setPriceScopeToWebsite" />
29+
</before>
30+
<after>
31+
<!-- Configure Stores -> Configuration -> General -> Currency Setup -> Currency Options -> Base Currency = USD (as default value) -->
32+
<magentoCLI command="config:set --scope website --scope-code base currency/options/base USD" stepKey="setBaseCurrencyBackAsUSDToMainWebsite" after="deleteSimpleProduct" />
33+
<!-- Configure Stores -> Configuration -> Catalog -> Catalog -> Price Scope = Global -->
34+
<magentoCLI command="config:set catalog/price/scope 0" stepKey="setPriceScopeToGlobal" after="setBaseCurrencyBackAsUSDToMainWebsite" />
35+
</after>
36+
</test>
37+
</tests>

0 commit comments

Comments
 (0)