File tree Expand file tree Collapse file tree 7 files changed +74
-51
lines changed
app/code/Magento/AdvancedSearch/Test/Mftf Expand file tree Collapse file tree 7 files changed +74
-51
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 =" AdminFillSearchTermActionGroup" >
12
+ <annotations >
13
+ <description >Fills the search terms form with sample data.</description >
14
+ </annotations >
15
+ <arguments >
16
+ <argument name =" searchQuery" type =" string" />
17
+ <argument name =" store" type =" string" />
18
+ <argument name =" redirectUrl" type =" string" />
19
+ <argument name =" suggestedTerms" type =" string" />
20
+ </arguments >
21
+ <!-- Fill form fields -->
22
+ <fillField selector =" {{AdminSearchTermsPageFormFieldsSection.query_text}}" userInput =" {{searchQuery}}" stepKey =" fillFieldSearchQuery" />
23
+ <selectOption selector =" {{AdminSearchTermsPageFormFieldsSection.store_id}}" userInput =" {{store}}" stepKey =" selectStoreView" />
24
+ <fillField selector =" {{AdminSearchTermsPageFormFieldsSection.redirect}}" userInput =" {{redirectUrl}}" stepKey =" fillFieldRedirectUrl" />
25
+ <selectOption selector =" {{AdminSearchTermsPageFormFieldsSection.display_in_terms}}" userInput =" {{suggestedTerms}}" stepKey =" selectSuggestedTerms" />
26
+ </actionGroup >
27
+ </actionGroups >
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 =" AdminOpenNewSerchTermPageActionGroup" >
12
+ <annotations >
13
+ <description >Navigate to search terms form page.</description >
14
+ </annotations >
15
+ <amOnPage url =" {{AdminSearchTermsFormPage.url}}" stepKey =" amOnSearchTermsForm" />
16
+ <waitForPageLoad stepKey =" waitForPageLoad1" />
17
+ </actionGroup >
18
+ </actionGroups >
Load Diff This file was deleted.
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 =" AdminSaveSearchTermActionGroup" >
12
+ <annotations >
13
+ <description >Save a new search term from Magento admin.</description >
14
+ </annotations >
15
+ <!-- Click save action and verify success message -->
16
+ <click selector =" {{AdminMainActionsSection.save}}" stepKey =" clickSaveSearchButton" />
17
+ <see userInput =" You saved the search term." stepKey =" assertSaveSearchTermSuccessMessage" />
18
+ </actionGroup >
19
+ </actionGroups >
Original file line number Diff line number Diff line change 9
9
<pages xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
10
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/PageObject.xsd" >
11
11
<page name =" AdminSearchTermsFormPage" url =" /search/term/new" area =" admin" module =" Magento_AdvancedSearch" >
12
- <section name =" AdminSearchTermsPageFormActionsSection" />
13
12
<section name =" AdminSearchTermsPageFormFieldsSection" />
14
13
</page >
15
14
</pages >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 18
18
<group value =" AdvancedSearch" />
19
19
</annotations >
20
20
<before >
21
- <actionGroup ref =" LoginActionGroup " stepKey =" loginGetFromGeneralFile " />
21
+ <actionGroup ref =" AdminLoginActionGroup " stepKey =" loginAsAdmin " />
22
22
</before >
23
23
<after >
24
- <actionGroup ref =" logout " stepKey =" logout" />
24
+ <actionGroup ref =" AdminLogoutActionGroup " stepKey =" logout" />
25
25
</after >
26
- <actionGroup ref =" AdminSaveNewSearchTermActionGroup" stepKey =" createNewSearchTerm" />
26
+ <actionGroup ref =" AdminOpenNewSerchTermPageActionGroup" stepKey =" navigateToSearchTermPage" />
27
+ <actionGroup ref =" AdminFillSearchTermActionGroup" stepKey =" fillNewSearchTermData" >
28
+ <argument name =" searchQuery" value =" {{SearchTerms.searchQuery}}" />
29
+ <argument name =" store" value =" {{SearchTerms.store}}" />
30
+ <argument name =" redirectUrl" value =" {{SearchTerms.redirectUrl}}" />
31
+ <argument name =" suggestedTerms" value =" {{SearchTerms.suggestedTerms}}" />
32
+ </actionGroup >
33
+ <actionGroup ref =" AdminSaveSearchTermActionGroup" stepKey =" saveSearchTerm" />
27
34
</test >
28
35
</tests >
You can’t perform that action at this time.
0 commit comments