-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Expand file tree
/
Copy pathAdminPanelIsFrozenIfStorefrontIsOpenedViaCustomerViewTest.xml
More file actions
79 lines (77 loc) · 4.67 KB
/
AdminPanelIsFrozenIfStorefrontIsOpenedViaCustomerViewTest.xml
File metadata and controls
79 lines (77 loc) · 4.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
<test name="AdminPanelIsFrozenIfStorefrontIsOpenedViaCustomerViewTest">
<annotations>
<features value="Customer"/>
<stories value="Customer Order"/>
<title value="Place an order and click print"/>
<description value="Admin panel is not frozen if Storefront is opened via Customer View"/>
<severity value="MAJOR"/>
<testCaseId value="https://github.com/magento/magento2/pull/24845"/>
<group value="customer"/>
</annotations>
<before>
<createData entity="Simple_US_Customer" stepKey="simpleCustomer"/>
<createData entity="SimpleSubCategory" stepKey="createSimpleCategory"/>
<createData entity="SimpleProduct" stepKey="createSimpleProduct">
<requiredEntity createDataKey="createSimpleCategory"/>
</createData>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="login"/>
</before>
<after>
<deleteData createDataKey="createSimpleCategory" stepKey="deleteCategory"/>
<deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/>
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
</after>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="navigateToNewOrderPage"/>
<createData entity="CustomerCart" stepKey="createCustomerCart">
<requiredEntity createDataKey="simpleCustomer"/>
</createData>
<createData entity="CustomerCartItem" stepKey="addSecondProduct">
<requiredEntity createDataKey="createCustomerCart"/>
<requiredEntity createDataKey="createSimpleProduct"/>
</createData>
<createData entity="CustomerAddressInformation" stepKey="fillCustomerInfo">
<requiredEntity createDataKey="createCustomerCart"/>
</createData>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectFlatRate"/>
<updateData createDataKey="createCustomerCart" entity="CustomerOrderPaymentMethod" stepKey="submitOrder">
<requiredEntity createDataKey="createCustomerCart"/>
</updateData>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="getOrderId"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="startCreateInvoice"/>
<createData entity="Invoice" stepKey="submitInvoice">
<requiredEntity createDataKey="createCustomerCart"/>
</createData>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="goToShipment"/>
<createData entity="Shipment" stepKey="submitShipment">
<requiredEntity createDataKey="createCustomerCart"/>
</createData>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="startToCreateCreditMemo"/>
<createData entity="CreditMemo" stepKey="submitCreditMemo">
<requiredEntity createDataKey="createCustomerCart"/>
</createData>
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="logInCustomer">
<argument name="Customer" value="$$simpleCustomer$$"/>
</actionGroup>
<actionGroup ref="StorefrontCustomerGoToSidebarMenu" stepKey="goToMyOrdersPage">
<argument name="menu" value="My Orders"/>
</actionGroup>
<actionGroup ref="StorefrontClickViewOrderLinkOnMyOrdersPageActionGroup" stepKey="clickViewOrder"/>
<actionGroup ref="StorefrontClickPrintOrderLinkOnViewOrderPageActionGroup" stepKey="clickPrintOrderLink"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitPageReload"/>
<switchToWindow stepKey="switchToWindow"/>
<switchToPreviousTab stepKey="switchToPreviousTab"/>
<actionGroup ref="StorefrontCustomerGoToSidebarMenu" stepKey="goToAddressBook">
<argument name="menu" value="Address Book"/>
</actionGroup>
<see selector="{{CheckoutOrderSummarySection.shippingAddress}}" userInput="{{US_Address_TX.street[0]}} {{US_Address_TX.city}}, {{US_Address_TX.state}}, {{US_Address_TX.postcode}}" stepKey="checkShippingAddress"/>
</test>
</tests>