Skip to content

Commit e365717

Browse files
committed
Merge branch '2.4-develop' of https://github.com/magento-commerce/magento2ce into ACP2E-1028
2 parents 9cb64ad + d379b7f commit e365717

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

app/code/Magento/Elasticsearch/Test/Mftf/Test/StorefrontProductQuickSearchUsingElasticSearchWithSynonymsTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@
8181

8282
<!-- Create 3rd synonym -->
8383
<actionGroup ref="AdminNavigateToNewSearchSynonymsPageActionGroup" stepKey="navigateToNewThirdSearchSynonym"/>
84-
<actionGroup ref="AdminFillNewSearchSynonymsActionGroup" stepKey="fillThirdSearchSynonym">
85-
<argument name="scope_id" value="1:3"/>
84+
<actionGroup ref="AdminFillNewSearchSynonymsForCustomScopeActionGroup" stepKey="fillThirdSearchSynonym">
85+
<argument name="scopeName" value="{{customStore.name}}"/>
8686
<argument name="synonyms" value="customview,simple"/>
8787
</actionGroup>
8888
<click selector="{{AdminSearchSynonymsNewSection.save}}" stepKey="clickSaveSynonymThreeButton"/>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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="AdminFillNewSearchSynonymsForCustomScopeActionGroup">
12+
<annotations>
13+
<description>Fills the search synonyms form field with a custom Scope.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="scopeName" type="string"/>
17+
<argument name="synonyms" type="string"/>
18+
</arguments>
19+
20+
<click selector="{{AdminSearchSynonymsNewSection.scope}}" stepKey="clickScopeSelector"/>
21+
<waitForElementVisible selector="{{AdminSearchSynonymsNewSection.selectScope(scopeName)}}" stepKey="waitForScopesList"/>
22+
<click selector="{{AdminSearchSynonymsNewSection.selectScope(scopeName)}}" stepKey="clickStoreView"/>
23+
<fillField selector="{{AdminSearchSynonymsNewSection.synonyms}}" userInput="{{synonyms}}" stepKey="fillSynonyms"/>
24+
<checkOption selector="{{AdminSearchSynonymsNewSection.merge}}" stepKey="checkCheckbox"/>
25+
</actionGroup>
26+
</actionGroups>

app/code/Magento/Search/Test/Mftf/Section/AdminSearchSynonymsNewSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@
1414
<element name="scope" type="select" selector="//select[@name='scope_id']"/>
1515
<element name="synonyms" type="textarea" selector="//textarea[@name='synonyms']"/>
1616
<element name="merge" type="checkbox" selector="//input[@name='mergeOnConflict']"/>
17+
<element name="selectScope" type="select" selector="//option[contains(text(),'{{scopeName}}')]" parameterized="true"/>
1718
</section>
1819
</sections>

0 commit comments

Comments
 (0)