|
| 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="UpdateCurrencyRateForQuotesInStatusesOrderedAndClosedTest"> |
| 12 | + <annotations> |
| 13 | + <stories value="Currency Rates"/> |
| 14 | + <title value="Update currency rate for quotes in statuses Ordered and Closed"/> |
| 15 | + <description value="Update currency rate for created quotes in statuses Ordered and Closed"/> |
| 16 | + <severity value="MAJOR"/> |
| 17 | + <testCaseId value="B2B-1506"/> |
| 18 | + </annotations> |
| 19 | + <before> |
| 20 | + <!--Login to backend--> |
| 21 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 22 | + <!--Setup currencies --> |
| 23 | + <actionGroup ref="AdminNavigateToCurrencySetupPageActionGroup" stepKey="navigateToConfigCurrencySetupPage"/> |
| 24 | + <actionGroup ref="AdminExpandCurrencyOptionsActionGroup" stepKey="openCurrencyOptions"/> |
| 25 | + <actionGroup ref="AdminSetBaseCurrencyActionGroup" stepKey="setBaseCurrencyUSD"> |
| 26 | + <argument name="currency" value="US Dollar"/> |
| 27 | + </actionGroup> |
| 28 | + <selectOption selector="{{CurrencySetupSection.baseCurrency}}" userInput="US Dollar" stepKey="setBaseCurrencyField"/> |
| 29 | + <uncheckOption selector="{{CurrencySetupSection.allowcurrenciescheckbox}}" stepKey="UnCheckUseDefaultOptionForAllowedCurrencies"/> |
| 30 | + <selectOption selector="{{CurrencySetupSection.allowCurrencies}}" parameterArray="['Euro', 'US Dollar']" stepKey="selectCurrencies"/> |
| 31 | + <scrollToTopOfPage stepKey="scrollToTopOfPage" /> |
| 32 | + <actionGroup ref="AdminSetDefaultCurrencyActionGroup" stepKey="setDefaultCurrencyEUR"> |
| 33 | + <argument name="currency" value="Euro"/> |
| 34 | + </actionGroup> |
| 35 | + <actionGroup ref="AdminSaveConfigActionGroup" stepKey="saveStoreConfiguration"/> |
| 36 | + <!--<click stepKey="saveConfigs" selector="{{AdminConfigSection.saveButton}}"/>--> |
| 37 | + <waitForElementVisible selector="{{AdminMessagesSection.success}}" stepKey="waitForSuccessMessage"/> |
| 38 | + <waitForText selector="{{AdminMessagesSection.success}}" userInput="You saved the configuration." stepKey="seeSuccessMessage"/> |
| 39 | + <!--Go to Configuration -> Currency Setup--> |
| 40 | + <actionGroup ref="AdminOpenCurrencyRatesPageActionGroup" stepKey="gotToCurrencyRatesPage"/> |
| 41 | + <actionGroup ref="AdminImportCurrencyRatesActionGroup" stepKey="importCurrencyRates"/> |
| 42 | + </before> |
| 43 | + </test> |
| 44 | +</tests> |
0 commit comments