File tree Expand file tree Collapse file tree 12 files changed +105
-16
lines changed Expand file tree Collapse file tree 12 files changed +105
-16
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+
9
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" AssertAdminPageTitleActionGroup" >
12
+ <annotations >
13
+ <description >Check Admin Page Title is present and correct.</description >
14
+ </annotations >
15
+ <arguments >
16
+ <argument name =" value" type =" string" />
17
+ </arguments >
18
+
19
+ <see selector =" {{AdminHeaderSection.pageTitle}}" userInput =" {{value}}" stepKey =" seePageTitle" />
20
+ </actionGroup >
21
+ </actionGroups >
Original file line number Diff line number Diff line change 87
87
88
88
<actionGroup ref =" AdminOrderGridClickFirstRowActionGroup" stepKey =" clickOrderRow" />
89
89
<actionGroup ref =" AdminClickInvoiceButtonOrderViewActionGroup" stepKey =" clickInvoiceButton" />
90
- <see selector =" {{AdminHeaderSection.pageTitle}}" userInput =" New Invoice" stepKey =" seeNewInvoiceInPageTitle" after =" clickInvoiceButton" />
90
+ <actionGroup ref =" AssertAdminPageTitleActionGroup" stepKey =" seeNewInvoiceInPageTitle" after =" clickInvoiceButton" >
91
+ <argument name =" value" value =" New Invoice" />
92
+ </actionGroup >
91
93
<see selector =" {{AdminInvoiceTotalSection.total('Subtotal')}}" userInput =" $150.00" stepKey =" seeCorrectGrandTotal" />
92
94
<actionGroup ref =" AdminInvoiceClickSubmitActionGroup" stepKey =" clickSubmitInvoice" />
93
95
<see selector =" {{AdminOrderDetailsMessagesSection.successMessage}}" userInput =" The invoice has been created." stepKey =" seeSuccessInvoiceMessage" />
Original file line number Diff line number Diff line change 32
32
<actionGroup ref =" AdminLogoutActionGroup" stepKey =" logout" />
33
33
</after >
34
34
<waitForPageLoad stepKey =" waitForPageLoadOnDashboard" />
35
- <see userInput =" Dashboard" selector =" {{AdminHeaderSection.pageTitle}}" stepKey =" seeDashboardTitle" />
35
+ <actionGroup ref =" AssertAdminPageTitleActionGroup" stepKey =" seeDashboardTitle" >
36
+ <argument name =" value" value =" Dashboard" />
37
+ </actionGroup >
36
38
<actionGroup ref =" AssertAdminSuccessLoginActionGroup" stepKey =" loggedInSuccessfully" />
37
39
<actionGroup ref =" AssertAdminPageIsNot404ActionGroup" stepKey =" dontSee404Page" />
38
40
</test >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+
9
+ <tests xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/testSchema.xsd" >
11
+ <test name =" AdminStartupPageTest" >
12
+ <annotations >
13
+ <features value =" Backend" />
14
+ <stories value =" Admin should see selected Startup Page after login." />
15
+ <title value =" Admin should see selected Startup Page after login." />
16
+ <description value =" Admin should see selected Startup Page after login." />
17
+ <severity value =" MINOR" />
18
+ </annotations >
19
+ <before >
20
+ <magentoCLI command =" config:set admin/startup/menu_item_id Magento_Sales::sales_order" stepKey =" selectSalesOrderStartupPage" />
21
+ <actionGroup ref =" AdminLoginActionGroup" stepKey =" LoginAsAdmin" />
22
+ </before >
23
+ <after >
24
+ <magentoCLI command =" config:set admin/startup/menu_item_id Magento_Backend::dashboard" stepKey =" selectDashboardStartupPage" />
25
+ <actionGroup ref =" AdminLogoutActionGroup" stepKey =" logout" />
26
+ </after >
27
+
28
+ <actionGroup ref =" CliCacheCleanActionGroup" stepKey =" cleanInvalidatedCaches" >
29
+ <argument name =" tags" value =" config full_page" />
30
+ </actionGroup >
31
+
32
+ <actionGroup ref =" AssertAdminPageTitleActionGroup" stepKey =" checkPageTitle" >
33
+ <argument name =" value" value =" Orders" />
34
+ </actionGroup >
35
+ </test >
36
+ </tests >
Original file line number Diff line number Diff line change 82
82
<comment userInput =" Replacing reload action and preserve Backward Compatibility" stepKey =" waitForReloadSecond" />
83
83
84
84
<seeInTitle userInput =" Products / Inventory / Catalog / Magento Admin" stepKey =" seeAdminProductsPageTitle" />
85
- <see userInput =" Products" selector =" {{AdminHeaderSection.pageTitle}}" stepKey =" seeAdminProductsPageHeader" />
85
+ <actionGroup ref =" AssertAdminPageTitleActionGroup" stepKey =" seeAdminProductsPageHeader" >
86
+ <argument name =" value" value =" Products" />
87
+ </actionGroup >
86
88
87
89
<switchToNextTab stepKey =" switchToFrontendTab" />
88
90
<closeTab stepKey =" closeFrontendTab" />
Original file line number Diff line number Diff line change 51
51
</actionGroup >
52
52
53
53
<actionGroup ref =" AdminClickInvoiceButtonOrderViewActionGroup" stepKey =" clickInvoiceAction" />
54
- <see selector =" {{AdminHeaderSection.pageTitle}}" userInput =" New Invoice" stepKey =" seePageNameNewInvoicePage" />
54
+ <actionGroup ref =" AssertAdminPageTitleActionGroup" stepKey =" seePageNameNewInvoicePage" >
55
+ <argument name =" value" value =" New Invoice" />
56
+ </actionGroup >
55
57
<actionGroup ref =" AdminInvoiceClickSubmitActionGroup" stepKey =" clickSubmitInvoice" />
56
58
<click selector =" {{AdminOrderDetailsMainActionsSection.ship}}" stepKey =" clickShipAction" />
57
59
<seeInCurrentUrl url =" {{AdminShipmentNewPage.url}}" stepKey =" seeOrderShipmentUrl" />
Original file line number Diff line number Diff line change 80
80
<seeElement selector =" {{AdminOrderFormItemsSection.creditMemo}}" stepKey =" seeCreditMemo" />
81
81
<click selector =" {{AdminOrderFormItemsSection.creditMemo}}" stepKey =" clickCreditMemoItem" />
82
82
<waitForPageLoad stepKey =" waitForCreditMemoPageLoaded" />
83
- <see selector =" {{AdminHeaderSection.pageTitle}}" userInput =" New Memo" stepKey =" seeNewMemoPageTitle" />
83
+ <actionGroup ref =" AssertAdminPageTitleActionGroup" stepKey =" seeNewMemoPageTitle" >
84
+ <argument name =" value" value =" New Memo" />
85
+ </actionGroup >
84
86
<seeInCurrentUrl url =" {{AdminCreditMemoNewPage.url}}" stepKey =" seeNewMemoUrlOnPage" />
85
87
</test >
86
88
</tests >
Original file line number Diff line number Diff line change 34
34
<!-- Create order via Admin-->
35
35
<comment userInput =" Admin creates order" stepKey =" adminCreateOrderComment" />
36
36
<actionGroup ref =" AdminOrdersPageOpenActionGroup" stepKey =" navigateToOrderIndexPage" />
37
- <see selector =" {{AdminHeaderSection.pageTitle}}" userInput =" Orders" stepKey =" seeIndexPageTitle" />
37
+ <actionGroup ref =" AssertAdminPageTitleActionGroup" stepKey =" seeIndexPageTitle" >
38
+ <argument name =" value" value =" Orders" />
39
+ </actionGroup >
38
40
<click selector =" {{AdminOrdersGridSection.createNewOrder}}" stepKey =" clickCreateNewOrder" />
39
41
<click selector =" {{AdminOrderFormActionSection.CreateNewCustomer}}" stepKey =" clickCreateCustomer" />
40
- <see selector =" {{AdminHeaderSection.pageTitle}}" userInput =" Create New Order" stepKey =" seeNewOrderPageTitle" />
42
+ <actionGroup ref =" AssertAdminPageTitleActionGroup" stepKey =" seeNewOrderPageTitle" >
43
+ <argument name =" value" value =" Create New Order" />
44
+ </actionGroup >
41
45
42
46
<!-- Check if order can be submitted without the required fields-->
43
47
<actionGroup ref =" AddSimpleProductToOrderActionGroup" stepKey =" addSimpleProductToOrder" after =" seeNewOrderPageTitle" >
Original file line number Diff line number Diff line change 33
33
<comment userInput =" Admin creates order" stepKey =" adminCreateOrderComment" />
34
34
<!-- <actionGroup ref="NavigateToNewOrderPageNewCustomerActionGroup" stepKey="navigateToNewOrderPage"/>-->
35
35
<actionGroup ref =" AdminOrdersPageOpenActionGroup" stepKey =" navigateToOrderIndexPage" />
36
- <see selector =" {{AdminHeaderSection.pageTitle}}" userInput =" Orders" stepKey =" seeIndexPageTitle" />
36
+ <actionGroup ref =" AssertAdminPageTitleActionGroup" stepKey =" seeIndexPageTitle" >
37
+ <argument name =" value" value =" Orders" />
38
+ </actionGroup >
37
39
<click selector =" {{AdminOrdersGridSection.createNewOrder}}" stepKey =" clickCreateNewOrder" />
38
40
<click selector =" {{AdminOrderFormActionSection.CreateNewCustomer}}" stepKey =" clickCreateCustomer" />
39
- <see selector =" {{AdminHeaderSection.pageTitle}}" userInput =" Create New Order" stepKey =" seeNewOrderPageTitle" />
41
+ <actionGroup ref =" AssertAdminPageTitleActionGroup" stepKey =" seeNewOrderPageTitle" >
42
+ <argument name =" value" value =" Create New Order" />
43
+ </actionGroup >
40
44
41
45
<!-- Check if order can be submitted without the required fields including email address-->
42
46
<actionGroup ref =" CheckRequiredFieldsNewOrderFormActionGroup" stepKey =" checkRequiredFieldsNewOrder" after =" seeNewOrderPageTitle" />
Original file line number Diff line number Diff line change 32
32
<comment userInput =" Admin creates order" stepKey =" adminCreateOrderComment" />
33
33
<!-- <actionGroup ref="NavigateToNewOrderPageNewCustomerActionGroup" stepKey="navigateToNewOrderPage"/>-->
34
34
<actionGroup ref =" AdminOrdersPageOpenActionGroup" stepKey =" navigateToOrderIndexPage" />
35
- <see selector =" {{AdminHeaderSection.pageTitle}}" userInput =" Orders" stepKey =" seeIndexPageTitle" />
35
+ <actionGroup ref =" AssertAdminPageTitleActionGroup" stepKey =" seeIndexPageTitle" >
36
+ <argument name =" value" value =" Orders" />
37
+ </actionGroup >
36
38
<click selector =" {{AdminOrdersGridSection.createNewOrder}}" stepKey =" clickCreateNewOrder" />
37
39
<click selector =" {{AdminOrderFormActionSection.CreateNewCustomer}}" stepKey =" clickCreateCustomer" />
38
- <see selector =" {{AdminHeaderSection.pageTitle}}" userInput =" Create New Order" stepKey =" seeNewOrderPageTitle" />
40
+ <actionGroup ref =" AssertAdminPageTitleActionGroup" stepKey =" seeNewOrderPageTitle" >
41
+ <argument name =" value" value =" Create New Order" />
42
+ </actionGroup >
39
43
40
44
<!-- Check if order can be submitted without the required fields including email address-->
41
45
<actionGroup ref =" CheckRequiredFieldsNewOrderFormActionGroup" stepKey =" checkRequiredFieldsNewOrder" after =" seeNewOrderPageTitle" />
You can’t perform that action at this time.
0 commit comments