Skip to content

Commit d52db80

Browse files
committed
MC-244: Admin should be able to create a simple product using a custom attribute set
- Use meta_keyword instead of news_from_date and news_to_date
1 parent 1e2d445 commit d52db80

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Test/AdminCreateProductCustomAttributeSet.xml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@
4545
<fillField selector="{{AdminProductAttributeSetSection.name}}" userInput="{{ProductAttributeFrontendLabel.label}}" stepKey="fillName"/>
4646
<selectOption selector="{{AdminProductAttributeSetSection.basedOn}}" userInput="Default" stepKey="selectDefaultSet"/>
4747
<click selector="{{AdminProductAttributeSetSection.saveBtn}}" stepKey="clickSave1"/>
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"/>
48+
<dragAndDrop selector1="{{AdminProductAttributeSetSection.attribute('meta_keyword')}}" selector2="{{AdminProductAttributeSetSection.attribute('manufacturer')}}" stepKey="unassign1"/>
5049
<click selector="{{AdminProductAttributeSetSection.addNewGroupBtn}}" stepKey="clickAddNewGroup"/>
5150
<fillField selector="{{AdminProductAttributeSetSection.newGroupName}}" userInput="TestGroupName" stepKey="fillNewGroupName"/>
5251
<click selector="{{AdminProductAttributeSetSection.modalOk}}" stepKey="clickOkInModal"/>
@@ -56,20 +55,20 @@
5655
<!-- Go to new product page and see a default attribute -->
5756
<amOnPage url="{{AdminProductCreatePage.url('4', 'simple')}}" stepKey="goToNewProductPage"/>
5857
<waitForPageLoad stepKey="wait2"/>
59-
<seeElementInDOM selector="{{AdminProductFormSection.divByDataIndex('news_from_date')}}" stepKey="seeNewsFromDate"/>
60-
<seeElementInDOM selector="{{AdminProductFormSection.divByDataIndex('news_to_date')}}" stepKey="seeNewsToDate"/>
58+
<click selector="{{AdminProductSEOSection.sectionHeader}}" stepKey="expandSEOSection"/>
59+
<waitForPageLoad stepKey="wait3"/>
60+
<seeElementInDOM selector="{{AdminProductFormSection.divByDataIndex('meta_keyword')}}" stepKey="seeMetaKeyword"/>
6161
<dontSeeElementInDOM selector="{{AdminProductFormSection.divByDataIndex('testgroupname')}}" stepKey="dontSeeTestGroupName"/>
6262

6363
<!-- Switch from default attribute set to new attribute set -->
6464
<click selector="{{AdminProductFormSection.attributeSet}}" stepKey="startEditAttrSet"/>
6565
<fillField selector="{{AdminProductFormSection.attributeSetFilter}}" userInput="{{ProductAttributeFrontendLabel.label}}" stepKey="searchForAttrSet"/>
6666
<click selector="{{AdminProductFormSection.attributeSetFilterResult}}" stepKey="selectAttrSet"/>
67-
<waitForPageLoad stepKey="wait3"/>
67+
<waitForPageLoad stepKey="wait4"/>
6868

6969
<!-- See new attibute set -->
7070
<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"/>
71+
<dontSeeElementInDOM selector="{{AdminProductFormSection.divByDataIndex('meta_keyword')}}" stepKey="dontSeeMetaKeyword"/>
7372

7473
<!-- Finish filling the new product page -->
7574
<actionGroup ref="fillMainProductFormNoWeight" stepKey="fillSimpleProductMain">

0 commit comments

Comments
 (0)