-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74325ef
commit 0ac2e5d
Showing
4 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...atalogWidget/Test/Mftf/ActionGroup/AdminFillCatalogProductsListWidgetTitleActionGroup.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?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="AdminFillCatalogProductsListWidgetTitleActionGroup"> | ||
<annotations> | ||
<description>Fill catalog products list title field.</description> | ||
</annotations> | ||
|
||
<arguments> | ||
<argument name="title" type="string" defaultValue=""/> | ||
</arguments> | ||
<waitForElementVisible selector="{{InsertWidgetSection.title}}" stepKey="waitForField"/> | ||
<fillField selector="{{InsertWidgetSection.title}}" userInput="{{title}}" stepKey="fillTitleField"/> | ||
</actionGroup> | ||
</actionGroups> |
26 changes: 26 additions & 0 deletions
26
...de/Magento/CatalogWidget/Test/Mftf/ActionGroup/StorefrontAssertWidgetTitleActionGroup.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?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="StorefrontAssertWidgetTitleActionGroup"> | ||
<annotations> | ||
<description>Assert widget title on storefront.</description> | ||
</annotations> | ||
<arguments> | ||
<argument name="title" type="string"/> | ||
</arguments> | ||
|
||
<grabTextFrom selector="{{StorefrontWidgetsSection.widgetProductsGrid}} {{StorefrontWidgetsSection.widgetTitle}}" | ||
stepKey="grabWidgetTitle"/> | ||
<assertEquals stepKey="assertWidgetTitle"> | ||
<actualResult type="string">$grabWidgetTitle</actualResult> | ||
<expectedResult type="string">{{title}}</expectedResult> | ||
</assertEquals> | ||
</actionGroup> | ||
</actionGroups> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
app/code/Magento/Cms/Test/Mftf/Test/StoreFrontWidgetTitleWithReservedCharsTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> | ||
<test name="StoreFrontWidgetTitleWithReservedCharsTest"> | ||
<annotations> | ||
<features value="Cms"/> | ||
<stories value="Create a CMS Page via the Admin when widget title contains reserved chairs"/> | ||
<title value="Create CMS Page via the Admin when widget title contains reserved chairs"/> | ||
<description value="See CMS Page title on store front page if titled widget with reserved chairs added"/> | ||
<severity value="MAJOR"/> | ||
<group value="Cms"/> | ||
<group value="WYSIWYGDisabled"/> | ||
</annotations> | ||
<before> | ||
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> | ||
<createData entity="simpleProductWithoutCategory" stepKey="createSimpleProductWithoutCategory"/> | ||
<createData entity="_defaultCmsPage" stepKey="createCmsPage"/> | ||
</before> | ||
<after> | ||
<deleteData createDataKey="createSimpleProductWithoutCategory" stepKey="deleteProduct"/> | ||
<deleteData createDataKey="createCmsPage" stepKey="deleteCmsPage" /> | ||
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> | ||
</after> | ||
<!--Navigate to Page in Admin--> | ||
<actionGroup ref="NavigateToCreatedCMSPageActionGroup" stepKey="navigateToCreatedCMSPage"> | ||
<argument name="CMSPage" value="$createCmsPage$"/> | ||
</actionGroup> | ||
<!--Insert widget--> | ||
<actionGroup ref="AdminInsertWidgetToCmsPageContentActionGroup" stepKey="insertWidgetToCmsPageContent"> | ||
<argument name="widgetType" value="Catalog Products List"/> | ||
</actionGroup> | ||
<!--Fill widget title and save--> | ||
<actionGroup ref="AdminFillCatalogProductsListWidgetTitleActionGroup" stepKey="fillWidgetTitle"> | ||
<argument name="title" value="Tittle }}"/> | ||
</actionGroup> | ||
<actionGroup ref="AdminClickInsertWidgetActionGroup" stepKey="clickInsertWidgetButton"/> | ||
<actionGroup ref="SaveCmsPageActionGroup" stepKey="saveOpenedPage"/> | ||
<!--Verify data on frontend--> | ||
<actionGroup ref="StorefrontGoToCMSPageActionGroup" stepKey="navigateToPageOnStorefront"> | ||
<argument name="identifier" value="$createCmsPage.identifier$"/> | ||
</actionGroup> | ||
<actionGroup ref="StorefrontAssertWidgetTitleActionGroup" stepKey="verifyPageDataOnFrontend"> | ||
<argument name="title" value="Tittle }}"/> | ||
</actionGroup> | ||
</test> | ||
</tests> |