Skip to content

Commit 4dd5acf

Browse files
committed
Merge branch 'B2B-2106' of https://github.com/magento-arcticfoxes/magento2ce into B2B-2102
2 parents b0ef155 + 4e55682 commit 4dd5acf

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

app/code/Magento/Sales/Test/Mftf/ActionGroup/AddSimpleProductToOrderActionGroup.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@
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>

app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminAddSimpleProductWithCustomOptionFileToOrderActionGroup.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@
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>

app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminChangeCustomerOptionFileActionGroup.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,19 @@
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>

app/code/Magento/Sales/Test/Mftf/Test/AdminCreateOrderWithSimpleProductCustomOptionFileTest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
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>

0 commit comments

Comments
 (0)