-
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.
Merge pull request #38 from magento-lynx/MC-42290
MC-42290: Check bind changes are covered by test
- Loading branch information
Showing
6 changed files
with
95 additions
and
148 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
app/code/Magento/Theme/Test/Mftf/ActionGroup/AdminClickViewThemeActionGroup.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,17 @@ | ||
<?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="AdminClickViewThemeActionGroup"> | ||
<annotations> | ||
<description>Clicks on 'View' action of one theme on the themes grid.</description> | ||
</annotations> | ||
<click selector="{{AdminThemeSection.viewAction}}" stepKey="clickViewTheme"/> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd"> | ||
<entity name="MagentoBlankTheme"> | ||
<data key="pageTitle">Theme: Magento Blank</data> | ||
<data key="themePath">Magento/blank</data> | ||
<data key="themeTitle">Magento Blank</data> | ||
</entity> | ||
</entities> |
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
16 changes: 16 additions & 0 deletions
16
app/code/Magento/Theme/Test/Mftf/Section/AdminThemeSettingsSection.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,16 @@ | ||
<?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="AdminThemeSettingsSection"> | ||
<element name="themePath" type="text" selector=".field-theme_path"/> | ||
<element name="themeTitle" type="text" selector=".field-theme_title"/> | ||
<element name="themePreviewImage" type="text" selector="//div[contains(@class, 'field-preview_image')]//label//span[contains(text(), 'Theme Preview Image')]"/> | ||
</section> | ||
</sections> |
45 changes: 45 additions & 0 deletions
45
app/code/Magento/Theme/Test/Mftf/Test/AdminContentThemesEditTest.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,45 @@ | ||
<?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="AdminContentThemesEditTest"> | ||
<annotations> | ||
<features value="Theme"/> | ||
<stories value="Menu Navigation"/> | ||
<title value="Admin content themes edit test"/> | ||
<description value="Admin should be able to view a theme"/> | ||
<severity value="CRITICAL"/> | ||
<group value="menu"/> | ||
<group value="mtf_migrated"/> | ||
</annotations> | ||
<before> | ||
<actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin"/> | ||
</before> | ||
<after> | ||
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> | ||
</after> | ||
<actionGroup ref="AdminNavigateMenuActionGroup" stepKey="navigateToContentThemesPage"> | ||
<argument name="menuUiId" value="{{AdminMenuContent.dataUiId}}"/> | ||
<argument name="submenuUiId" value="{{AdminMenuContentDesignThemes.dataUiId}}"/> | ||
</actionGroup> | ||
<actionGroup ref="AdminAssertPageTitleActionGroup" stepKey="seePageTitle"> | ||
<argument name="title" value="{{AdminMenuContentDesignThemes.pageTitle}}"/> | ||
</actionGroup> | ||
|
||
<actionGroup ref="AdminClickViewThemeActionGroup" stepKey="editTheme"/> | ||
|
||
<actionGroup ref="AdminAssertPageTitleActionGroup" stepKey="seeEditPageTitle"> | ||
<argument name="title" value="{{MagentoBlankTheme.pageTitle}}"/> | ||
</actionGroup> | ||
|
||
<see selector="{{AdminThemeSettingsSection.themePath}}" userInput="{{MagentoBlankTheme.themePath}}" stepKey="assertThemePath"/> | ||
<see selector="{{AdminThemeSettingsSection.themeTitle}}" userInput="{{MagentoBlankTheme.themeTitle}}" stepKey="assertThemeTitle"/> | ||
<seeElementInDOM selector="{{AdminThemeSettingsSection.themePreviewImage}}" stepKey="seeThemePreviewImage"/> | ||
</test> | ||
</tests> |
This file was deleted.
Oops, something went wrong.