|
45 | 45 | <fillField selector="{{AdminProductAttributeSetSection.name}}" userInput="{{ProductAttributeFrontendLabel.label}}" stepKey="fillName"/>
|
46 | 46 | <selectOption selector="{{AdminProductAttributeSetSection.basedOn}}" userInput="Default" stepKey="selectDefaultSet"/>
|
47 | 47 | <click selector="{{AdminProductAttributeSetSection.saveBtn}}" stepKey="clickSave1"/>
|
48 |
| - <dragAndDrop selector1="{{AdminProductAttributeSetSection.attribute('color')}}" selector2="{{AdminProductAttributeSetSection.attribute('manufacturer')}}" stepKey="unassignColor"/> |
| 48 | + <dragAndDrop selector1="{{AdminProductAttributeSetSection.attribute('news_from_date')}}" selector2="{{AdminProductAttributeSetSection.attribute('manufacturer')}}" stepKey="unassign1"/> |
| 49 | + <dragAndDrop selector1="{{AdminProductAttributeSetSection.attribute('news_to_date')}}" selector2="{{AdminProductAttributeSetSection.attribute('manufacturer')}}" stepKey="unassign2"/> |
49 | 50 | <click selector="{{AdminProductAttributeSetSection.addNewGroupBtn}}" stepKey="clickAddNewGroup"/>
|
50 | 51 | <fillField selector="{{AdminProductAttributeSetSection.newGroupName}}" userInput="TestGroupName" stepKey="fillNewGroupName"/>
|
51 | 52 | <click selector="{{AdminProductAttributeSetSection.modalOk}}" stepKey="clickOkInModal"/>
|
52 | 53 | <dragAndDrop selector1="{{AdminProductAttributeSetSection.attribute('manufacturer')}}" selector2="{{AdminProductAttributeSetSection.attribute('TestGroupName')}}" stepKey="assignManufacturer"/>
|
53 | 54 | <click selector="{{AdminProductAttributeSetSection.saveBtn}}" stepKey="clickSave2"/>
|
54 | 55 |
|
55 |
| - <!-- Go to new product page and see a default attribute (color) --> |
| 56 | + <!-- Go to new product page and see a default attribute --> |
56 | 57 | <amOnPage url="{{AdminProductCreatePage.url('4', 'simple')}}" stepKey="goToNewProductPage"/>
|
57 | 58 | <waitForPageLoad stepKey="wait2"/>
|
58 |
| - <seeElementInDOM selector="{{AdminProductFormSection.divByDataIndex('color')}}" stepKey="seeColor"/> |
| 59 | + <seeElementInDOM selector="{{AdminProductFormSection.divByDataIndex('news_from_date')}}" stepKey="seeNewsFromDate"/> |
| 60 | + <seeElementInDOM selector="{{AdminProductFormSection.divByDataIndex('news_to_date')}}" stepKey="seeNewsToDate"/> |
59 | 61 | <dontSeeElementInDOM selector="{{AdminProductFormSection.divByDataIndex('testgroupname')}}" stepKey="dontSeeTestGroupName"/>
|
60 | 62 |
|
61 | 63 | <!-- Switch from default attribute set to new attribute set -->
|
62 | 64 | <click selector="{{AdminProductFormSection.attributeSet}}" stepKey="startEditAttrSet"/>
|
63 | 65 | <fillField selector="{{AdminProductFormSection.attributeSetFilter}}" userInput="{{ProductAttributeFrontendLabel.label}}" stepKey="searchForAttrSet"/>
|
64 |
| - <click selector="div[data-index='attribute_set_id'] .action-menu-item._last" stepKey="selectAttrSet"/> <!-- todo: reusable selector --> |
| 66 | + <click selector="{{AdminProductFormSection.attributeSetFilterResult}}" stepKey="selectAttrSet"/> |
65 | 67 | <waitForPageLoad stepKey="wait3"/>
|
66 | 68 |
|
67 | 69 | <!-- See new attibute set -->
|
68 |
| - <dontSeeElementInDOM selector="{{AdminProductFormSection.divByDataIndex('color')}}" stepKey="dontSeeColor"/> |
69 | 70 | <seeElementInDOM selector="{{AdminProductFormSection.divByDataIndex('testgroupname')}}" stepKey="seeTestGroupName"/>
|
| 71 | + <dontSeeElementInDOM selector="{{AdminProductFormSection.divByDataIndex('news_from_date')}}" stepKey="dontSeeNewsFromDate"/> |
| 72 | + <dontSeeElementInDOM selector="{{AdminProductFormSection.divByDataIndex('news_to_date')}}" stepKey="dontSeeNewsToDate"/> |
70 | 73 |
|
71 | 74 | <!-- Finish filling the new product page -->
|
72 | 75 | <actionGroup ref="fillMainProductFormNoWeight" stepKey="fillSimpleProductMain">
|
|
0 commit comments