|
| 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 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 9 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 10 | + <test name="AdminCheckColorUploadChooserVisualSwatchTest"> |
| 11 | + <annotations> |
| 12 | + <features value="Swatches"/> |
| 13 | + <stories value="Check correct view of visual swatches"/> |
| 14 | + <title value="Correct view of Swatches while choosing color or upload image"/> |
| 15 | + <description value="Correct view of Swatches while choosing color or upload image"/> |
| 16 | + <severity value="AVERAGE"/> |
| 17 | + <group value="Swatches"/> |
| 18 | + </annotations> |
| 19 | + <before> |
| 20 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 21 | + </before> |
| 22 | + <amOnPage url="{{ProductAttributePage.url}}" stepKey="addNewProductAttribute"/> |
| 23 | + <selectOption selector="{{AttributePropertiesSection.InputType}}" |
| 24 | + userInput="{{visualSwatchAttribute.input_type}}" stepKey="fillInputType"/> |
| 25 | + |
| 26 | + <click selector="{{AdminManageSwatchSection.addSwatch}}" stepKey="clickAddSwatch1"/> |
| 27 | + <click selector="{{AdminManageSwatchSection.addSwatch}}" stepKey="clickAddSwatch2"/> |
| 28 | + <click selector="{{AdminManageSwatchSection.addSwatch}}" stepKey="clickAddSwatch3"/> |
| 29 | + <click selector="{{AdminManageSwatchSection.nthVisualSwatch('3')}}" stepKey="clickSwatch3"/> |
| 30 | + |
| 31 | + <click selector="{{AdminManageSwatchSection.nthVisualSwatch('2')}}" stepKey="clickSwatch2"/> |
| 32 | + <seeElement selector="{{AdminManageSwatchSection.chooserBlock('2')}}" stepKey="seeSwatch2"/> |
| 33 | + <dontSeeElement selector="{{AdminManageSwatchSection.chooserBlock('3')}}" stepKey="dontSeeSwatch3"/> |
| 34 | + |
| 35 | + <click selector="{{AdminManageSwatchSection.nthVisualSwatch('1')}}" stepKey="clickSwatch1"/> |
| 36 | + <seeElement selector="{{AdminManageSwatchSection.chooserBlock('1')}}" stepKey="seeSwatch1"/> |
| 37 | + <dontSeeElement selector="{{AdminManageSwatchSection.chooserBlock('2')}}" stepKey="dontSeeSwatch2"/> |
| 38 | + </test> |
| 39 | +</tests> |
0 commit comments