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 22
22
<click selector =" {{AdminOrderFormItemsSection.search}}" stepKey =" clickSearch" />
23
23
<scrollTo selector =" {{AdminOrderFormItemsSection.rowCheck('1')}}" x =" 0" y =" -100" stepKey =" scrollToCheckColumn" />
24
24
<checkOption selector =" {{AdminOrderFormItemsSection.rowCheck('1')}}" stepKey =" selectProduct" />
25
+ <waitForPageLoad stepKey =" waitForProductLoad" />
25
26
<fillField selector =" {{AdminOrderFormItemsSection.rowQty('1')}}" userInput =" {{productQty}}" stepKey =" fillProductQty" />
26
27
<scrollTo selector =" {{AdminOrderFormItemsSection.addSelected}}" x =" 0" y =" -100" stepKey =" scrollToAddSelectedButton" />
27
28
<click selector =" {{AdminOrderFormItemsSection.addSelected}}" stepKey =" clickAddSelectedProducts" />
28
- <waitForLoadingMaskToDisappear stepKey =" waitForOptionsToLoad" />
29
+ <waitForPageLoad stepKey =" waitForOptionsToLoad" />
29
30
</actionGroup >
30
31
</actionGroups >
Original file line number Diff line number Diff line change 16
16
</arguments >
17
17
18
18
<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" />
21
22
<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" />
23
27
</actionGroup >
24
28
</actionGroups >
Original file line number Diff line number Diff line change 12
12
<description >Change custom option file on admin order page.</description >
13
13
</annotations >
14
14
<arguments >
15
- <argument name =" file" type =" string" defaultValue =" {{TestImageNew.file}}" />
15
+ <argument name =" file" type =" string" defaultValue =" {{TestImageNew.file}}" />
16
16
</arguments >
17
17
18
18
<click selector =" {{AdminOrderFormItemsSection.configure}}" stepKey =" clickConfigure" />
19
- <waitForAjaxLoad stepKey =" waitForAjaxLoad" />
19
+ <waitForPageLoad stepKey =" waitForAjaxLoad" />
20
+ <waitForElementVisible selector =" {{AdminOrderFormCustomOptionsSection.linkChange}}" stepKey =" waitForLinkChange" />
20
21
<click selector =" {{AdminOrderFormCustomOptionsSection.linkChange}}" stepKey =" clickLinkChange" />
21
22
<waitForPageLoad stepKey =" waitForChangeLoad" />
23
+ <waitForElementVisible selector =" {{AdminOrderFormCustomOptionsSection.file}}" stepKey =" waitForAttachImage" />
22
24
<attachFile selector =" {{AdminOrderFormCustomOptionsSection.file}}" userInput =" {{file}}" stepKey =" changeAttachImage" />
25
+ <waitForPageLoad stepKey =" waitForImageUploaded" />
23
26
<click selector =" {{AdminOrderFormCustomOptionsSection.buttonOk}}" stepKey =" clickButtonOK" />
24
27
<waitForPageLoad stepKey =" waitForCustomOptionApplied" />
28
+ <waitForElementNotVisible selector =" {{AdminOrderFormCustomOptionsSection.buttonOk}}" stepKey =" waitForOkButtonGone" />
25
29
</actionGroup >
26
30
</actionGroups >
Original file line number Diff line number Diff line change 50
50
<argument name =" productQty" value =" $simpleProduct.quantity$" />
51
51
</actionGroup >
52
52
<!-- 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 >
54
56
</test >
55
57
</tests >
You can’t perform that action at this time.
0 commit comments