Skip to content

Commit

Permalink
v3 added AdminOpenIndexManagementPageActionGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
Usik2203 committed Aug 22, 2020
1 parent 8b7d949 commit b991d9a
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@
<argument name="tags" value=""/>
</actionGroup>
<!--Open Index Management Page -->
<amOnPage url="{{AdminIndexManagementPage.url}}" stepKey="openIndexManagementPage"/>
<waitForPageLoad stepKey="waitForIndexPageToBeLoaded"/>
<actionGroup ref="AdminOpenIndexManagementPageActionGroup" stepKey="openIndexManagementPage"/>
<see stepKey="seeIndexStatus" selector="{{AdminIndexManagementSection.indexerStatus('Category Flat Data')}}" userInput="Ready"/>
<!--Verify Category In Store Front-->
<amOnPage url="/$$createCategory.name$$.html" stepKey="openCategoryPage1"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
<argument name="tags" value=""/>
</actionGroup>
<!--Open Index Management Page -->
<amOnPage url="{{AdminIndexManagementPage.url}}" stepKey="openIndexManagementPage"/>
<waitForPageLoad stepKey="waitForIndexPageToBeLoaded"/>
<actionGroup ref="AdminOpenIndexManagementPageActionGroup" stepKey="openIndexManagementPage"/>
<see stepKey="seeIndexStatus" selector="{{AdminIndexManagementSection.indexerStatus('Category Flat Data')}}" userInput="Ready"/>
<!--Verify Category In Store Front-->
<amOnPage url="/$$createCategory.name$$.html" stepKey="openCategoryPage1"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
<argument name="tags" value=""/>
</actionGroup>
<!--Open Index Management Page -->
<amOnPage url="{{AdminIndexManagementPage.url}}" stepKey="openIndexManagementPage"/>
<waitForPageLoad stepKey="waitForIndexPageToBeLoaded"/>
<actionGroup ref="AdminOpenIndexManagementPageActionGroup" stepKey="openIndexManagementPage"/>
<see stepKey="seeIndexStatus" selector="{{AdminIndexManagementSection.indexerStatus('Category Flat Data')}}" userInput="Ready"/>
<!--Verify Category In Store Front-->
<amOnPage url="/$$category.name$$.html" stepKey="openCategoryPage1"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
<createData entity="_defaultCategory" stepKey="createSecondCategory"/>

<!-- Switch "Category Product" and "Product Category" indexers to "Update by Schedule" mode -->
<amOnPage url="{{AdminIndexManagementPage.url}}" stepKey="onIndexManagement"/>
<waitForPageLoad stepKey="waitForManagementPage"/>
<actionGroup ref="AdminOpenIndexManagementPageActionGroup" stepKey="onIndexManagement"/>

<actionGroup ref="AdminSwitchIndexerToActionModeActionGroup" stepKey="switchCategoryProduct">
<argument name="indexerValue" value="catalog_category_product"/>
Expand All @@ -38,8 +37,7 @@

<after>
<!-- Switch "Category Product" and "Product Category" indexers to "Update by Save" mode -->
<amOnPage url="{{AdminIndexManagementPage.url}}" stepKey="onIndexManagement"/>
<waitForPageLoad stepKey="waitForManagementPage"/>
<actionGroup ref="AdminOpenIndexManagementPageActionGroup" stepKey="onIndexManagement"/>

<actionGroup ref="AdminSwitchIndexerToActionModeActionGroup" stepKey="switchCategoryProduct">
<argument name="indexerValue" value="catalog_category_product"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
<argument name="tags" value=""/>
</actionGroup>
<!--Open Index Management Page -->
<amOnPage url="{{AdminIndexManagementPage.url}}" stepKey="openIndexManagementPage"/>
<waitForPageLoad stepKey="waitForIndexPageToLoad"/>
<actionGroup ref="AdminOpenIndexManagementPageActionGroup" stepKey="openIndexManagementPage"/>
<see stepKey="seeCategoryIndexStatus" selector="{{AdminIndexManagementSection.indexerStatus('Category Flat Data')}}" userInput="Ready"/>
<!--Verify Product In Store Front-->
<amOnPage url="$$createSimpleProduct.name$$.html" stepKey="goToStorefrontPage"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
<argument name="tags" value=""/>
</actionGroup>
<!--Open Index Management Page -->
<amOnPage url="{{AdminIndexManagementPage.url}}" stepKey="openIndexManagementPage"/>
<waitForPageLoad stepKey="waitForIndexPageToBeLoaded"/>
<actionGroup ref="AdminOpenIndexManagementPageActionGroup" stepKey="openIndexManagementPage"/>
<see stepKey="seeIndexStatus" selector="{{AdminIndexManagementSection.indexerStatus('Category Flat Data')}}" userInput="Ready"/>
<!--Verify Category In Store Front-->
<amOnPage url="/$$createCategory.name$$.html" stepKey="openCategoryPage1"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
<argument name="tags" value=""/>
</actionGroup>
<!--Open Index Management Page -->
<amOnPage url="{{AdminIndexManagementPage.url}}" stepKey="openIndexManagementPage"/>
<waitForPageLoad stepKey="waitForIndexPageToLoad"/>
<actionGroup ref="AdminOpenIndexManagementPageActionGroup" stepKey="openIndexManagementPage"/>
<see stepKey="seeIndexStatus" selector="{{AdminIndexManagementSection.indexerStatus('Category Flat Data')}}" userInput="READY"/>
<!--Verify Category In Store Front-->
<amOnPage url="{{SimpleSubCategory.name}}.html" stepKey="goToStorefrontPage"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
<actionGroup name="AdminOpenIndexManagementPageActionGroup">
<annotations>
<description>Open index management page.</description>
</annotations>

<amOnPage url="{{AdminIndexManagementPage.url}}" stepKey="openIndexManagementPage"/>
<waitForPageLoad stepKey="waitForPageLoad"/>
</actionGroup>
</actionGroups>

0 comments on commit b991d9a

Please sign in to comment.