Skip to content

Commit 2204386

Browse files
committed
Merge remote-tracking branch 'origin/MC-22132' into 2.3-develop-pr84
2 parents 30dadc0 + 3af5f0c commit 2204386

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

app/code/Magento/Store/Test/Mftf/ActionGroup/AdminDeleteStoreViewActionGroup.xml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,18 +74,27 @@
7474
<see selector="{{AdminStoresGridSection.emptyText}}" userInput="We couldn't find any records." stepKey="seeAssertStoreViewNotInGridMessage"/>
7575
</actionGroup>
7676

77-
<actionGroup name="AdminDeleteStoreViewIfExistsActionGroup">
77+
<actionGroup name="AdminSearchStoreViewByNameActionGroup">
7878
<annotations>
79-
<description>Goes to the Admin Stores grid page. Deletes the provided Store (if exists) without creating a Backup. Validates that the Success Message is present and correct.</description>
79+
<description>Goes to the Admin Stores grid page. Clears filters and search by store view name.</description>
8080
</annotations>
8181
<arguments>
8282
<argument name="storeViewName" type="string"/>
8383
</arguments>
8484

8585
<amOnPage url="{{AdminSystemStorePage.url}}" stepKey="amOnAdminSystemStorePage"/>
86-
<click selector="{{AdminStoresGridSection.resetButton}}" stepKey="resetSearchFilter"/>
86+
<click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="resetSearchFilter"/>
8787
<fillField selector="{{AdminStoresGridSection.storeFilterTextField}}" userInput="{{storeViewName}}" stepKey="fillSearchStoreViewField"/>
88-
<click selector="{{AdminStoresGridSection.searchButton}}" stepKey="clickSearchButton"/>
88+
<click selector="{{AdminDataGridHeaderSection.applyFilters}}" stepKey="clickSearchButton"/>
89+
</actionGroup>
90+
91+
<actionGroup name="AdminDeleteStoreViewIfExistsActionGroup" extends="AdminSearchStoreViewByNameActionGroup">
92+
<annotations>
93+
<description>EXTENDS: AdminSearchStoreViewByNameActionGroup. Goes to the Admin Stores grid page. Deletes the provided Store (if exists) without creating a Backup. Validates that the Success Message is present and correct.</description>
94+
</annotations>
95+
<arguments>
96+
<argument name="storeViewName" type="string"/>
97+
</arguments>
8998

9099
<executeInSelenium function="function($webdriver) use ($I) {
91100
$items = $webdriver->findElements(\Facebook\WebDriver\WebDriverBy::cssSelector('.col-store_title>a'));
@@ -103,7 +112,6 @@
103112
$I->waitForElementVisible('#messages div.message-success', 10);
104113
$I->see('You deleted the store view.', '#messages div.message-success');
105114
}
106-
}" stepKey="deleteStoreViewIfExists"/>
115+
}" after="clickSearchButton" stepKey="deleteStoreViewIfExists"/>
107116
</actionGroup>
108-
109117
</actionGroups>

app/code/Magento/UrlRewrite/Test/Mftf/Test/AdminCheckUrlRewritesCorrectlyGeneratedForMultipleStoreviewsDuringProductImportTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@
169169
<actionGroup ref="AdminDeleteStoreViewIfExistsActionGroup" stepKey="deleteStoreViewNl">
170170
<argument name="storeViewName" value="{{customStoreNLNotUnique.name}}"/>
171171
</actionGroup>
172+
<actionGroup ref="clearFiltersAdminDataGrid" stepKey="clearStoreGridFilters"/>
172173
<actionGroup ref="deleteProductByName" stepKey="deleteImportedProduct">
173174
<argument name="sku" value="productformagetwo68980"/>
174175
<argument name="name" value="productformagetwo68980"/>

0 commit comments

Comments
 (0)