|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 | <!--
|
3 |
| -/** |
4 |
| - * ADOBE CONFIDENTIAL |
5 |
| - * |
6 |
| - * Copyright 2025 Adobe |
7 |
| - * All Rights Reserved. |
8 |
| - * |
9 |
| - * NOTICE: All information contained herein is, and remains |
10 |
| - * the property of Adobe and its suppliers, if any. The intellectual |
11 |
| - * and technical concepts contained herein are proprietary to Adobe |
12 |
| - * and its suppliers and are protected by all applicable intellectual |
13 |
| - * property laws, including trade secret and copyright laws. |
14 |
| - * Dissemination of this information or reproduction of this material |
15 |
| - * is strictly forbidden unless prior written permission is obtained |
16 |
| - * from Adobe. |
17 |
| - */ |
| 3 | + /** |
| 4 | + * Copyright 2025 Adobe |
| 5 | + * All Rights Reserved. |
| 6 | + */ |
18 | 7 | -->
|
19 | 8 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
20 | 9 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
|
29 | 18 | <group value="Catalog"/>
|
30 | 19 | </annotations>
|
31 | 20 | <before>
|
| 21 | + <!-- Pre-condition Step-1 Multiselect attribute is created with three options: 1, 2, 3 --> |
| 22 | + <createData entity="multiSelectAttributeWithThreeOptions" stepKey="createMultiSelectProductAttributeWithThreeOptions"/> |
32 | 23 | <!-- Login as admin -->
|
33 | 24 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
|
34 |
| - <!-- Pre-condition Step-1 Multiselect attribute is created with three options: 1, 2, 3 --> |
35 |
| - <createData entity="multiSelectAttributeWithThreeOptions" stepKey="createMultiSelectProductAttributeWith2Options"/> |
36 | 25 | <actionGroup ref="AdminOpenProductAttributePageActionGroup" stepKey="goToProductAttributes"/>
|
37 | 26 | <actionGroup ref="NavigateToCreatedProductAttributeActionGroup" stepKey="openAttributeFromGrid">
|
38 |
| - <argument name="ProductAttribute" value="$$createMultiSelectProductAttributeWith2Options$$"/> |
| 27 | + <argument name="ProductAttribute" value="$$createMultiSelectProductAttributeWithThreeOptions$$"/> |
39 | 28 | </actionGroup>
|
40 | 29 | <actionGroup ref="CreateAttributeDropdownNthOptionActionGroup" stepKey="createOption1">
|
41 | 30 | <argument name="adminName" value="{{multiSelectAttributeWithThreeOptions.option1}}"/>
|
|
58 | 47 | <actionGroup ref="AdminOpenAttributeSetByNameActionGroup" stepKey="openDefaultAttributeSet"/>
|
59 | 48 | <actionGroup ref="AssignAttributeToGroupActionGroup" stepKey="assignAttributeToGroup">
|
60 | 49 | <argument name="group" value="Product Details"/>
|
61 |
| - <argument name="attribute" value="$$createMultiSelectProductAttributeWith2Options.attribute_code$$"/> |
| 50 | + <argument name="attribute" value="$$createMultiSelectProductAttributeWithThreeOptions.attribute_code$$"/> |
62 | 51 | </actionGroup>
|
63 | 52 | <actionGroup ref="SaveAttributeSetActionGroup" stepKey="saveAttributeSet"/>
|
64 | 53 | <!-- Pre-condition Step-3 Product is created based on default attribute set. Value of multiselect attribute set to 1 and 2 for this product -->
|
|
71 | 60 | <argument name="product" value="$$createSimpleProduct$$"/>
|
72 | 61 | </actionGroup>
|
73 | 62 | <waitForElementVisible
|
74 |
| - selector="{{AdminProductFormSection.customSelectAttribute('$$createMultiSelectProductAttributeWith2Options.attribute_code$$')}}" |
| 63 | + selector="{{AdminProductFormSection.customSelectAttribute('$$createMultiSelectProductAttributeWithThreeOptions.attribute_code$$')}}" |
75 | 64 | stepKey="waitForMultiSelectAttributeToSelect"/>
|
76 | 65 | <selectOption
|
77 |
| - selector="{{AdminProductFormSection.customSelectAttribute('$$createMultiSelectProductAttributeWith2Options.attribute_code$$')}}" |
| 66 | + selector="{{AdminProductFormSection.customSelectAttribute('$$createMultiSelectProductAttributeWithThreeOptions.attribute_code$$')}}" |
78 | 67 | parameterArray="['1','2']" stepKey="selectFirstAndSecondOptions"/>
|
79 | 68 | <actionGroup ref="SaveProductFormActionGroup" stepKey="saveProductForm"/>
|
80 | 69 | </before>
|
|
83 | 72 | <deleteData createDataKey="createSimpleProduct" stepKey="deleteProduct"/>
|
84 | 73 | <!-- Delete attribute -->
|
85 | 74 | <actionGroup ref="NavigateToCreatedProductAttributeActionGroup" stepKey="openAttributeFromGrid">
|
86 |
| - <argument name="ProductAttribute" value="$$createMultiSelectProductAttributeWith2Options$$"/> |
| 75 | + <argument name="ProductAttribute" value="$$createMultiSelectProductAttributeWithThreeOptions$$"/> |
87 | 76 | </actionGroup>
|
88 | 77 | <actionGroup ref="DeleteProductAttributeByAttributeCodeActionGroup" stepKey="deleteProductAttribute"/>
|
89 | 78 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
|
99 | 88 | <!--Step 4 - Under ACTIONS select update attributes -->
|
100 | 89 | <actionGroup ref="AdminClickMassUpdateProductAttributesActionGroup" stepKey="clickMassUpdateProductAttributes"/>
|
101 | 90 | <!--Step 5 - Check the "change"-checkbox and alter the values from 1 and 2 to 3 only -->
|
102 |
| - <scrollTo selector="{{AdminEditProductAttributesSection.toggleAttribute('$$createMultiSelectProductAttributeWith2Options.attribute_code$$')}}" stepKey="scrollToAttributeTogglebtn" /> |
103 |
| - <checkOption selector="{{AdminEditProductAttributesSection.toggleAttribute('$$createMultiSelectProductAttributeWith2Options.attribute_code$$')}}" stepKey="toggleAttribute"/> |
| 91 | + <scrollTo selector="{{AdminEditProductAttributesSection.toggleAttribute('$$createMultiSelectProductAttributeWithThreeOptions.attribute_code$$')}}" stepKey="scrollToAttributeTogglebtn" /> |
| 92 | + <checkOption selector="{{AdminEditProductAttributesSection.toggleAttribute('$$createMultiSelectProductAttributeWithThreeOptions.attribute_code$$')}}" stepKey="toggleAttribute"/> |
104 | 93 | <unselectOption
|
105 |
| - selector="{{AdminProductFormSection.customAttributeUnderMassUpdate('$$createMultiSelectProductAttributeWith2Options.attribute_code$$')}}" |
| 94 | + selector="{{AdminProductFormSection.customAttributeUnderMassUpdate('$$createMultiSelectProductAttributeWithThreeOptions.attribute_code$$')}}" |
106 | 95 | parameterArray="['1','2']" stepKey="uncheckFirstAndSecondOptions"/>
|
107 | 96 | <selectOption
|
108 |
| - selector="{{AdminProductFormSection.customAttributeUnderMassUpdate('$$createMultiSelectProductAttributeWith2Options.attribute_code$$')}}" |
| 97 | + selector="{{AdminProductFormSection.customAttributeUnderMassUpdate('$$createMultiSelectProductAttributeWithThreeOptions.attribute_code$$')}}" |
109 | 98 | parameterArray="['3']" stepKey="selectThridOption"/>
|
110 | 99 | <!--Step 6 - Click 'Save Attribute' button -->
|
111 | 100 | <actionGroup ref="AdminMassUpdateProductAttributeSaveActionGroup" stepKey="saveUpdatedProductAttribute"/>
|
|
120 | 109 | </actionGroup>
|
121 | 110 | <waitForPageLoad stepKey="waitForProductPageLoad"/>
|
122 | 111 | <dontSeeOptionIsSelected
|
123 |
| - selector="{{AdminProductFormSection.customSelectAttribute('$$createMultiSelectProductAttributeWith2Options.attribute_code$$')}}" |
| 112 | + selector="{{AdminProductFormSection.customSelectAttribute('$$createMultiSelectProductAttributeWithThreeOptions.attribute_code$$')}}" |
124 | 113 | userInput="1" stepKey="assertOption1NotChecked"/>
|
125 | 114 | <dontSeeOptionIsSelected
|
126 |
| - selector="{{AdminProductFormSection.customSelectAttribute('$$createMultiSelectProductAttributeWith2Options.attribute_code$$')}}" |
| 115 | + selector="{{AdminProductFormSection.customSelectAttribute('$$createMultiSelectProductAttributeWithThreeOptions.attribute_code$$')}}" |
127 | 116 | userInput="2" stepKey="assertOption2NotChecked"/>
|
128 | 117 | <seeOptionIsSelected
|
129 |
| - selector="{{AdminProductFormSection.customSelectAttribute('$$createMultiSelectProductAttributeWith2Options.attribute_code$$')}}" |
130 |
| - userInput="3" stepKey="assertOption3NotChecked"/> |
| 118 | + selector="{{AdminProductFormSection.customSelectAttribute('$$createMultiSelectProductAttributeWithThreeOptions.attribute_code$$')}}" |
| 119 | + userInput="3" stepKey="assertOption3IsChecked"/> |
131 | 120 | </test>
|
132 | 121 | </tests>
|
0 commit comments