Skip to content

Commit 67b323e

Browse files
ManjushaManjusha
authored andcommitted
Merge branch 'AC-4593CE-de' into functional-testing-mainline-deployment
2 parents 78a0d40 + bba9930 commit 67b323e

File tree

6 files changed

+39
-1
lines changed

6 files changed

+39
-1
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/AddNewProductAttributeInProductPageTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
<!-- Login as admin -->
2323
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
2424

25+
<!-- remove the Filter From the page-->
26+
<actionGroup ref="ClearFiltersAdminProductGridActionGroup" stepKey="clearFilterFromProductIndex"/>
27+
2528
<!--Create Category-->
2629
<createData entity="SimpleSubCategory" stepKey="createCategory"/>
2730

app/code/Magento/Checkout/Test/Mftf/Section/StorefrontMinicartSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@
5050
<element name="minicartclose" type="button" selector="//button[@id='btn-minicart-close']"/>
5151
<element name="productCountNew" type="text" selector=".minicart-wrapper .action.showcart .counter-number"/>
5252
<element name="image" type="text" selector="//*[@class='product-image-container']//img[contains(@src, '{{var1}}')]" parameterized="true"/>
53+
<element name="proceedToCheckout" type="button" selector="//button[@data-role='proceed-to-checkout']"/>
5354
</section>
5455
</sections>

app/code/Magento/Sales/Test/Mftf/Section/AdminOrdersGridSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,6 @@
4646
<element name="orderId" type="text" selector="//table[contains(@class, 'data-grid')]//div[contains(text(), '{{orderId}}')]" parameterized="true"/>
4747
<element name="exactOrderId" type="text" selector="//table[contains(@class, 'data-grid')]//div[text()='{{orderId}}']" parameterized="true"/>
4848
<element name="orderIdByIncrementId" type="text" selector="//input[@class='admin__control-checkbox' and @value={{incrId}}]/parent::label/parent::td/following-sibling::td" parameterized="true"/>
49+
<element name="orderSubtotal" type="input" selector="//tbody//tr[@class='col-0']//td[@class='label' and contains(text(),'Subtotal')]/..//td//span[@class='price']"/>
4950
</section>
5051
</sections>

app/code/Magento/SalesRule/Test/Mftf/Test/StorefrontCategoryRulesShouldApplyToGroupedProductWithInvisibleIndividualProductTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
</annotations>
2020
<before>
2121
<magentoCLI command="config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey="enableFlatRate"/>
22+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
23+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
2224
<createData entity="ApiCategory" stepKey="createCategoryOne"/>
2325
<createData entity="ApiSimpleProduct" stepKey="createFirstSimpleProduct">
2426
<field key ="price">100</field>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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="AdminIsDefaultWebsiteActionGroup">
12+
<annotations>
13+
<description>Goes to the Admin Stores grid page. Select the provided Website Name and select the is default .</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="websiteName" type="string"/>
17+
</arguments>
18+
19+
<amOnPage url="{{AdminSystemStorePage.url}}" stepKey="amOnAdminSystemStorePage"/>
20+
<click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="resetSearchFilter"/>
21+
<fillField userInput="{{websiteName}}" selector="{{AdminStoresGridSection.websiteFilterTextField}}" stepKey="fillSearchWebsiteField"/>
22+
<click selector="{{AdminStoresGridSection.searchButton}}" stepKey="clickSearchButton"/>
23+
<see userInput="{{websiteName}}" selector="{{AdminStoresGridSection.websiteNameInFirstRow}}" stepKey="verifyThatCorrectWebsiteFound"/>
24+
<click selector="{{AdminStoresGridSection.websiteNameInFirstRow}}" stepKey="clickEditExistingStoreRow"/>
25+
<waitForPageLoad stepKey="waitForStoreToLoad"/>
26+
<click selector="{{AdminStoresGridSection.isDefaultUnCheckBox}}" stepKey="clickOnCheckBox"/>
27+
<click selector="{{AdminNewWebsiteActionsSection.saveWebsite}}" stepKey="clickSaveWebsite"/>
28+
<see userInput="You saved the website." stepKey="seeSavedMessage"/>
29+
</actionGroup>
30+
</actionGroups>

app/code/Magento/Store/Test/Mftf/Section/AdminStoresGridSection/AdminStoresGridSection.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@
2424
<element name="websiteName" type="text" selector="//td[@class='a-left col-website_title ']/a[contains(.,'{{websiteName}}')]" parameterized="true"/>
2525
<element name="gridCell" type="text" selector="//table[@class='data-grid']//tr[{{row}}]//td[count(//table[@class='data-grid']//tr//th[contains(., '{{column}}')]/preceding-sibling::th) +1 ]" parameterized="true"/>
2626
<element name="storeViewLinkInNthRow" type="text" selector="tr:nth-of-type({{row}}) &gt; .col-store_title &gt; a" parameterized="true"/>
27-
</section>
27+
<element name="isDefaultUnCheckBox" type="checkbox" selector="//input[@id='is_default']"/>
28+
</section>
2829
</sections>

0 commit comments

Comments
 (0)