|
8 | 8 |
|
9 | 9 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
10 | 10 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
11 |
| - <test name="CheckingVATNumberValidationButtonForEUCountryTest"> |
| 11 | + <test name="AdminCheckVATNumberValidationButtonForEUCountryTest"> |
12 | 12 | <annotations>
|
13 | 13 | <title value="Validate VAT Number button for United Kingdom should work same as for non-EU countries after Brexit 2021"/>
|
14 | 14 | <description value="Validate VAT Number button for United Kingdom (GB) should work same as for non-EU countries after Brexit 2021"/>
|
|
32 | 32 | <!-- Expand the store information tab -->
|
33 | 33 | <conditionalClick selector="{{StoreConfigSection.StoreInformation}}" dependentSelector="{{StoreConfigSection.CheckIfTabExpand}}" visible="true" stepKey="checkIfTabOpen"/>
|
34 | 34 |
|
35 |
| - <!-- Verify that `Validate VAT Number` button is available and visible on the current page. --> |
36 |
| - <seeElement selector="{{StoreConfigSection.validateVATNumber}}" stepKey="seeVATNumberButton"/> |
37 |
| - |
38 |
| - <!-- Verify that the `Validate VAT Number` button contains class `disabled` for non-EU Country or none--> |
39 |
| - <seeElement selector="{{StoreConfigSection.validateVATNumber}}" selectorArray="['class' => 'disabled']" stepKey="validateVatNumberButtonShouldBeDisabledInitially"/> |
| 35 | + <!-- Verify that `Validate VAT Number` button is not visible when no Country selected--> |
| 36 | + <dontSeeElement selector="{{StoreConfigSection.validateVATNumber}}" stepKey="dontSeeVATNumberButton"/> |
40 | 37 |
|
41 | 38 | <!--Open country options section and select an EU Country (`Germany`) -->
|
42 | 39 | <selectOption userInput="{{DE_Address_Berlin_Not_Default_Address.country}}" selector="{{StoreConfigSection.Country}}" stepKey="selectEUStoreCountry"/>
|
|
45 | 42 | <!--Fill valid VAT Number for the selected EU Country (Germany)-->
|
46 | 43 | <fillField selector="{{StoreConfigSection.fillVATNumber}}" userInput="{{DE_Address_Berlin_Not_Default_Address.vatNumber}}" stepKey="fillValidVatNumberForEuCountry"/>
|
47 | 44 |
|
48 |
| - <!-- Verify that the `Validate VAT Number` button should not contain class `disabled` for EU Country--> |
49 |
| - <dontSeeElement selector="{{StoreConfigSection.validateVATNumber}}" parameterArray="['class' => 'disabled']" stepKey="validateVatNumberButtonEnabledForEuCountry"/> |
| 45 | + <!-- Verify that the `Validate VAT Number` button is visible for EU Country--> |
| 46 | + <seeElement selector="{{StoreConfigSection.validateVATNumber}}" stepKey="validateVatNumberButtonEnabledForEuCountry"/> |
50 | 47 |
|
51 | 48 | <!-- Click the `Validate VAT Number` button. -->
|
52 | 49 | <click selector="{{StoreConfigSection.validateVATNumber}}" stepKey="clickValidateVatNumberButton"/>
|
|
59 | 56 | <waitForAjaxLoad stepKey="waitForAjaxToLoadRegionForNonEuCountry"/>
|
60 | 57 | <fillField selector="{{StoreConfigSection.fillVATNumber}}" userInput="{{UK_With_State_Default_Billing.vatNumber}}" stepKey="fillVATNumberForNonEU"/>
|
61 | 58 |
|
62 |
| - <!-- Verify that the `Validate VAT Number` button contains class `disabled` for non-EU Country--> |
63 |
| - <seeElement selector="{{StoreConfigSection.validateVATNumber}}" selectorArray="['class' => 'disabled']" stepKey="validateVatNumberButtonDisabledAgain"/> |
| 59 | + <!-- Verify that the `Validate VAT Number` button disappears for selection of non-EU Country--> |
| 60 | + <dontSeeElement selector="{{StoreConfigSection.validateVATNumber}}" stepKey="validateVatNumberButtonDisabledAgain"/> |
64 | 61 | </test>
|
65 | 62 | </tests>
|
0 commit comments