Skip to content

Commit a54a2b7

Browse files
MC-31632: Dynamic Block based on segment not displaying correctly for visitor
1 parent cde4f67 commit a54a2b7

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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="updateIndexerBySchedule">
12+
<annotations>
13+
<description>Goes to the Index Management page. Checks the provided Indexer Name. Selects 'Update by Schedule'. Clicks on Submit.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="indexerName" type="string"/>
17+
</arguments>
18+
19+
<amOnPage url="{{_ENV.MAGENTO_BACKEND_NAME}}/indexer/indexer/list/" stepKey="amOnIndexManagementPage"/>
20+
<waitForPageLoad stepKey="waitForIndexManagementPageToLoad"/>
21+
<click selector="{{AdminIndexManagementSection.indexerCheckbox(indexerName)}}" stepKey="selectIndexer1"/>
22+
<selectOption selector="{{AdminIndexManagementSection.massActionSelect}}" userInput="change_mode_changelog" stepKey="selectUpdateBySchedule"/>
23+
<click selector="{{AdminIndexManagementSection.massActionSubmit}}" stepKey="submitIndexerForm"/>
24+
<!-- No re-indexing is done as part of this actionGroup since the test required no re-indexing -->
25+
<waitForPageLoad stepKey="waitForSave"/>
26+
</actionGroup>
27+
28+
<actionGroup name="updateIndexerOnSave">
29+
<annotations>
30+
<description>Goes to the Index Management page. Checks the provided Indexer Name. Selects 'Update on Save'. Clicks on Submit.</description>
31+
</annotations>
32+
<arguments>
33+
<argument name="indexerName" type="string"/>
34+
</arguments>
35+
36+
<amOnPage url="{{_ENV.MAGENTO_BACKEND_NAME}}/indexer/indexer/list/" stepKey="amOnIndexManagementPage2"/>
37+
<waitForPageLoad stepKey="waitForIndexManagementPageToLoad2"/>
38+
<click selector="{{AdminIndexManagementSection.indexerCheckbox(indexerName)}}" stepKey="selectIndexer2"/>
39+
<selectOption selector="{{AdminIndexManagementSection.massActionSelect}}" userInput="change_mode_onthefly" stepKey="selectUpdateOnSave"/>
40+
<click selector="{{AdminIndexManagementSection.massActionSubmit}}" stepKey="submitIndexerForm2"/>
41+
<!-- No re-indexing is done as part of this actionGroup since the test required no re-indexing -->
42+
<waitForPageLoad stepKey="waitForSave2"/>
43+
</actionGroup>
44+
<actionGroup name="AdminReindexAndFlushCache">
45+
<annotations>
46+
<description>Run reindex and flush cache.</description>
47+
</annotations>
48+
49+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
50+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
51+
</actionGroup>
52+
</actionGroups>

0 commit comments

Comments
 (0)