File tree Expand file tree Collapse file tree 4 files changed +18
-7
lines changed
app/code/Magento/Sales/Test/Mftf Expand file tree Collapse file tree 4 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 2222 <click selector =" {{AdminOrderFormItemsSection.search}}" stepKey =" clickSearch" />
2323 <scrollTo selector =" {{AdminOrderFormItemsSection.rowCheck('1')}}" x =" 0" y =" -100" stepKey =" scrollToCheckColumn" />
2424 <checkOption selector =" {{AdminOrderFormItemsSection.rowCheck('1')}}" stepKey =" selectProduct" />
25+ <waitForPageLoad stepKey =" waitForProductLoad" />
2526 <fillField selector =" {{AdminOrderFormItemsSection.rowQty('1')}}" userInput =" {{productQty}}" stepKey =" fillProductQty" />
2627 <scrollTo selector =" {{AdminOrderFormItemsSection.addSelected}}" x =" 0" y =" -100" stepKey =" scrollToAddSelectedButton" />
2728 <click selector =" {{AdminOrderFormItemsSection.addSelected}}" stepKey =" clickAddSelectedProducts" />
28- <waitForLoadingMaskToDisappear stepKey =" waitForOptionsToLoad" />
29+ <waitForPageLoad stepKey =" waitForOptionsToLoad" />
2930 </actionGroup >
3031</actionGroups >
Original file line number Diff line number Diff line change 1616 </arguments >
1717
1818 <remove keyForRemoval =" fillProductQty" />
19- <waitForAjaxLoad stepKey =" waitForAjaxLoad" after =" selectProduct" />
20- <fillField selector =" {{AdminOrderFormCustomOptionsSection.quantity}}" userInput =" {{productQty}}" stepKey =" fillProductQty" after =" waitForAjaxLoad" />
19+ <comment userInput =" BIC workaround" stepKey =" waitForAjaxLoad" after =" waitForProductLoad" />
20+ <waitForElementVisible selector =" {{AdminOrderFormCustomOptionsSection.quantity}}" stepKey =" waitForProductQty" after =" waitForAjaxLoad" />
21+ <fillField selector =" {{AdminOrderFormCustomOptionsSection.quantity}}" userInput =" {{productQty}}" stepKey =" fillProductQty" after =" waitForProductQty" />
2122 <attachFile selector =" {{AdminOrderFormCustomOptionsSection.file}}" userInput =" {{file}}" stepKey =" attachImageForOptional" after =" fillProductQty" />
22- <click selector =" {{AdminOrderFormCustomOptionsSection.buttonOk}}" stepKey =" clickButtonOK" after =" attachImageForOptional" />
23+ <waitForPageLoad stepKey =" waitForImageUploaded" after =" attachImageForOptional" />
24+ <click selector =" {{AdminOrderFormCustomOptionsSection.buttonOk}}" stepKey =" clickButtonOK" after =" waitForImageUploaded" />
25+ <waitForPageLoad stepKey =" waitForSlideOutGone" after =" clickButtonOK" />
26+ <waitForElementNotVisible selector =" {{AdminOrderFormCustomOptionsSection.buttonOk}}" stepKey =" waitForOkButtonGone" after =" waitForSlideOutGone" />
2327 </actionGroup >
2428</actionGroups >
Original file line number Diff line number Diff line change 1212 <description >Change custom option file on admin order page.</description >
1313 </annotations >
1414 <arguments >
15- <argument name =" file" type =" string" defaultValue =" {{TestImageNew.file}}" />
15+ <argument name =" file" type =" string" defaultValue =" {{TestImageNew.file}}" />
1616 </arguments >
1717
1818 <click selector =" {{AdminOrderFormItemsSection.configure}}" stepKey =" clickConfigure" />
19- <waitForAjaxLoad stepKey =" waitForAjaxLoad" />
19+ <waitForPageLoad stepKey =" waitForAjaxLoad" />
20+ <waitForElementVisible selector =" {{AdminOrderFormCustomOptionsSection.linkChange}}" stepKey =" waitForLinkChange" />
2021 <click selector =" {{AdminOrderFormCustomOptionsSection.linkChange}}" stepKey =" clickLinkChange" />
2122 <waitForPageLoad stepKey =" waitForChangeLoad" />
23+ <waitForElementVisible selector =" {{AdminOrderFormCustomOptionsSection.file}}" stepKey =" waitForAttachImage" />
2224 <attachFile selector =" {{AdminOrderFormCustomOptionsSection.file}}" userInput =" {{file}}" stepKey =" changeAttachImage" />
25+ <waitForPageLoad stepKey =" waitForImageUploaded" />
2326 <click selector =" {{AdminOrderFormCustomOptionsSection.buttonOk}}" stepKey =" clickButtonOK" />
2427 <waitForPageLoad stepKey =" waitForCustomOptionApplied" />
28+ <waitForElementNotVisible selector =" {{AdminOrderFormCustomOptionsSection.buttonOk}}" stepKey =" waitForOkButtonGone" />
2529 </actionGroup >
2630</actionGroups >
Original file line number Diff line number Diff line change 5050 <argument name =" productQty" value =" $simpleProduct.quantity$" />
5151 </actionGroup >
5252 <!-- Verify, admin able to change file for custom option.-->
53- <actionGroup ref =" AdminChangeCustomerOptionFileActionGroup" stepKey =" changeFile" />
53+ <actionGroup ref =" AdminChangeCustomerOptionFileActionGroup" stepKey =" changeFile" >
54+ <argument name =" file" value =" {{TestImageAdobe.file}}" />
55+ </actionGroup >
5456 </test >
5557</tests >
You can’t perform that action at this time.
0 commit comments