Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/magento/module-tax/Test/Mftf/Test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/magento/module-tax/Test/Mftf/Test/Update100TaxRateEntityTest.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
 /**
  * Copyright © Magento, Inc. All rights reserved.
  * See COPYING.txt for license details.
  */
-->

<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
    <test name="Update100TaxRateEntityTest">
        <annotations>
            <stories value="Update Tax Rate"/>
            <title value="Update tax rate, 100 rate"/>
            <description value="Test log in to Tax Rate and Update 100 Rate"/>
            <testCaseId value="MC-5328"/>
            <severity value="CRITICAL"/>
            <group value="tax"/>
            <group value="mtf_migrated"/>
        </annotations>
        <before>
            <createData entity="defaultTaxRate" stepKey="initialTaxRate"/>
            <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
        </before>
        <after>
            <deleteData stepKey="deleteTaxRate" createDataKey="initialTaxRate" />
        </after>

        <!-- Search the tax rate on tax grid page -->
        <actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRateIndex1"/>
        <actionGroup ref="AdminClearGridFiltersActionGroup" stepKey="clickClearFilters1"/>
        <actionGroup ref="AdminFillTaxIdentifierFilterOnTaxRateGridActionGroup" stepKey="fillCode">
            <argument name="taxRateCode" value="$$initialTaxRate.code$$"/>
        </actionGroup>
        <click selector="{{AdminTaxRateGridSection.search}}" stepKey="clickSearch1"/>
        <click selector="{{AdminTaxRateGridSection.nthRow('1')}}" stepKey="clickFirstRow1"/>

        <!-- Update values on the tax rate form page -->
        <fillField selector="{{AdminTaxRateFormSection.taxIdentifier}}" userInput="{{taxRateCustomRateUS.code}}" stepKey="fillTaxIdentifierField2"/>
        <selectOption selector="{{AdminTaxRateFormSection.country}}" userInput="{{taxRateCustomRateUS.tax_country_id}}" stepKey="selectCountry1"/>
        <selectOption selector="{{AdminTaxRateFormSection.state}}" userInput="{{taxRateCustomRateUS.tax_region_id}}" stepKey="selectState"/>
        <fillField selector="{{AdminTaxRateFormSection.zipCode}}" userInput="{{taxRateCustomRateUS.tax_postcode}}" stepKey="fillPostCode"/>
        <fillField selector="{{AdminTaxRateFormSection.rate}}" userInput="{{taxRateCustomRateUS.rate}}" stepKey="fillRate1"/>
        <click selector="{{AdminTaxRateFormSection.save}}" stepKey="clickSave"/>
        <see selector="{{AdminMessagesSection.success}}" userInput="You saved the tax rate." stepKey="seeSuccess"/>

        <!-- Verify we see updated TaxIdentifier(from the above step) on the tax rate grid page -->
        <actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRateIndex4"/>
        <actionGroup ref="AdminClearGridFiltersActionGroup" stepKey="clickClearFilters2"/>
        <actionGroup ref="AdminFillTaxIdentifierFilterOnTaxRateGridActionGroup" stepKey="fillTaxIdentifierField3">
            <argument name="taxRateCode" value="{{taxRateCustomRateUS.code}}"/>
        </actionGroup>
        <click selector="{{AdminTaxRateGridSection.search}}" stepKey="clickSearch2"/>
        <click selector="{{AdminTaxRateGridSection.nthRow('1')}}" stepKey="clickFirstRow2"/>
        <!-- Verify we see updated values on the tax rate form page -->
        <seeInField selector="{{AdminTaxRateFormSection.taxIdentifier}}" userInput="{{taxRateCustomRateUS.code}}" stepKey="seeRTaxIdentifier"/>
        <seeOptionIsSelected selector="{{AdminTaxRateFormSection.country}}" userInput="{{taxRateCustomRateUS.tax_country}}" stepKey="seeCountry2"/>
        <seeOptionIsSelected selector="{{AdminTaxRateFormSection.state}}" userInput="{{taxRateCustomRateUS.tax_region}}" stepKey="seeState2"/>
        <seeInField selector="{{AdminTaxRateFormSection.zipCode}}" userInput="{{taxRateCustomRateUS.tax_postcode}}" stepKey="seeZipCode"/>
        <seeInField selector="{{AdminTaxRateFormSection.rate}}" userInput="{{taxRateCustomRateUS.rate}}" stepKey="seeRate2"/>
    </test>
</tests>

Spamworldpro Mini