Skip to content

Commit

Permalink
Merge pull request #5538 from magento-tsg/2.4-develop-pr26
Browse files Browse the repository at this point in the history
[TSG] TESTs Fixes for 2.4 (pr26) (2.4-develop)
  • Loading branch information
zakdma authored Apr 4, 2020
2 parents 339618f + 0783e78 commit b307274
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
</annotations>

<seeInCurrentUrl url="{{AdminCategoryPage.url}}" stepKey="seeOnCategoryPage"/>
<scrollToTopOfPage stepKey="scrollToTopOfTheCategoryPage"/>
<click selector="{{AdminMainActionsSection.save}}" stepKey="saveCategory"/>
<waitForElementVisible selector="{{AdminMessagesSection.success}}" stepKey="waitForSuccessMessageAppears"/>
<see userInput="You saved the category." selector="{{AdminMessagesSection.success}}" stepKey="assertSuccessMessage"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
<actionGroup name="StorefrontAssertProductAbsentOnCategoryPageActionGroup">
<annotations>
<description>Navigate to category page and verify product is absent.</description>
<description>DEPRECATED. Please use AssertStorefrontProductAbsentOnCategoryPageActionGroup instead.
Navigate to category page and verify product is absent.</description>
</annotations>
<arguments>
<argument name="category" defaultValue="_defaultCategory"/>
Expand Down
1 change: 1 addition & 0 deletions app/code/Magento/Checkout/Test/Mftf/Page/CheckoutPage.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/PageObject.xsd">
<page name="CheckoutPage" url="/checkout" area="storefront" module="Magento_Checkout">
<section name="StorefrontCheckoutPageMessagesSection"/>
<section name="CheckoutShippingSection"/>
<section name="CheckoutShippingMethodsSection"/>
<section name="CheckoutOrderSummarySection"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
<section name="StorefrontCheckoutPageMessagesSection">
<element name="successMessage" type="text" selector="//div[@id='checkout']//div[@data-role='checkout-messages']//div[contains(@class,'message-success')]//div[contains(.,'{{message}}')]" parameterized="true"/>
</section>
</sections>

0 comments on commit b307274

Please sign in to comment.