|
| 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="Update100TaxRateEntityTest"> |
| 12 | + <annotations> |
| 13 | + <stories value="Update Tax Rate"/> |
| 14 | + <title value="Update tax rate, 100 rate"/> |
| 15 | + <description value="Test log in to Tax Rate and Update 100 Rate"/> |
| 16 | + <testCaseId value="MC-5328"/> |
| 17 | + <severity value="CRITICAL"/> |
| 18 | + <group value="tax"/> |
| 19 | + <group value="mtf_migrated"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <createData entity="taxRateCustomRateUS" stepKey="createTaxRateCustomRateUS"/> |
| 23 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 24 | + </before> |
| 25 | + <after> |
| 26 | + <deleteData stepKey="deleteTaxRate" createDataKey="createTaxRateCustomRateUS" /> |
| 27 | + </after> |
| 28 | + |
| 29 | + <!-- Search the tax rate on tax grid page --> |
| 30 | + <amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRateIndex1"/> |
| 31 | + <waitForPageLoad stepKey="waitForTaxRateIndex1"/> |
| 32 | + <click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="clickClearFilters1"/> |
| 33 | + <fillField selector="{{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput="$$createTaxRateCustomRateUS.code$$" stepKey="fillCode"/> |
| 34 | + <click selector="{{AdminTaxRateGridSection.search}}" stepKey="clickSearch1"/> |
| 35 | + <click selector="{{AdminTaxRateGridSection.nthRow('1')}}" stepKey="clickFirstRow1"/> |
| 36 | + |
| 37 | + <!-- Update values on the tax rate form page --> |
| 38 | + <fillField selector="{{AdminTaxRateFormSection.taxIdentifier}}" userInput="{{SimpleTaxRate.code}}" stepKey="fillTaxIdentifierField2"/> |
| 39 | + <selectOption selector="{{AdminTaxRateFormSection.country}}" userInput="United States" stepKey="selectCountry1"/> |
| 40 | + <selectOption selector="{{AdminTaxRateFormSection.state}}" userInput="California" stepKey="selectState"/> |
| 41 | + <fillField selector="{{AdminTaxRateFormSection.zipCode}}" userInput="90001" stepKey="fillPostCode"/> |
| 42 | + <fillField selector="{{AdminTaxRateFormSection.rate}}" userInput="100" stepKey="fillRate1"/> |
| 43 | + <click selector="{{AdminTaxRateFormSection.save}}" stepKey="clickSave"/> |
| 44 | + <see selector="{{AdminMessagesSection.success}}" userInput="You saved the tax rate." stepKey="seeSuccess"/> |
| 45 | + |
| 46 | + <!-- Verify we see updated TaxIdentifier(from the above step) on the tax rate grid page --> |
| 47 | + <amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRateIndex4"/> |
| 48 | + <waitForPageLoad stepKey="waitForTaxRateIndex2"/> |
| 49 | + <click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="clickClearFilters2"/> |
| 50 | + <fillField selector="{{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput="{{SimpleTaxRate.code}}" stepKey="fillTaxIdentifierField3"/> |
| 51 | + <click selector="{{AdminTaxRateGridSection.search}}" stepKey="clickSearch2"/> |
| 52 | + <click selector="{{AdminTaxRateGridSection.nthRow('1')}}" stepKey="clickFirstRow2"/> |
| 53 | + <!-- Verify we see updated values on the tax rate form page --> |
| 54 | + <seeInField selector="{{AdminTaxRateFormSection.taxIdentifier}}" userInput="{{SimpleTaxRate.code}}" stepKey="seeRTaxIdentifier"/> |
| 55 | + <seeOptionIsSelected selector="{{AdminTaxRateFormSection.country}}" userInput="United States" stepKey="seeCountry2"/> |
| 56 | + <seeOptionIsSelected selector="{{AdminTaxRateFormSection.state}}" userInput="California" stepKey="seeState2"/> |
| 57 | + <seeInField selector="{{AdminTaxRateFormSection.zipCode}}" userInput="90001" stepKey="seeZipCode"/> |
| 58 | + <seeInField selector="{{AdminTaxRateFormSection.rate}}" userInput="100" stepKey="seeRate2"/> |
| 59 | + </test> |
| 60 | +</tests> |
0 commit comments