-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Module_Cms MFTF test improvements #26782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
magento-engcom-team
merged 2 commits into
magento:2.4-develop
from
ajithkumar-maragathavel:mftf-cms-page-creation
Feb 13, 2020
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
...agento/Cms/Test/Mftf/Test/AdminConfigDefaultCMSPageLayoutFromConfigurationSettingTest.xml
This file contains hidden or 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,44 @@ | ||
| <?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="AdminConfigDefaultCMSPageLayoutFromConfigurationSettingTest"> | ||
| <annotations> | ||
| <features value="Cms"/> | ||
| <stories value="Default layout configuration MAGETWO-88793"/> | ||
| <title value="Admin should be able to configure the default layout for CMS Page from System Configuration"/> | ||
| <description value="Admin should be able to configure the default layout for CMS Page from System Configuration"/> | ||
| <severity value="CRITICAL"/> | ||
| <testCaseId value="MAGETWO-89025"/> | ||
| <group value="Cms"/> | ||
| </annotations> | ||
| <before> | ||
| <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> | ||
| </before> | ||
| <after> | ||
| <actionGroup ref="RestoreLayoutSetting" stepKey="sampleActionGroup"/> | ||
| <actionGroup ref="logout" stepKey="logout"/> | ||
| </after> | ||
| <amOnPage url="{{WebConfigurationPage.url}}" stepKey="navigateToWebConfigurationPage"/> | ||
| <waitForPageLoad stepKey="waitForPageLoad"/> | ||
| <conditionalClick stepKey="expandDefaultLayouts" selector="{{WebSection.DefaultLayoutsTab}}" dependentSelector="{{WebSection.CheckIfTabExpand}}" visible="true" /> | ||
| <waitForElementVisible selector="{{DefaultLayoutsSection.pageLayout}}" stepKey="DefaultProductLayout" /> | ||
| <seeOptionIsSelected selector="{{DefaultLayoutsSection.pageLayout}}" userInput="1 column" stepKey="seeOneColumnSelected" /> | ||
| <seeOptionIsSelected selector="{{DefaultLayoutsSection.productLayout}}" userInput="No layout updates" stepKey="seeNoLayoutUpdatesSelected1" /> | ||
| <seeOptionIsSelected selector="{{DefaultLayoutsSection.categoryLayout}}" userInput="No layout updates" stepKey="seeNoLayoutUpdatesSelected2" /> | ||
| <selectOption selector="{{DefaultLayoutsSection.pageLayout}}" userInput="2 columns with right bar" stepKey="selectColumnsWithRightBar"/> | ||
| <click selector="{{ContentManagementSection.Save}}" stepKey="clickSaveConfig" /> | ||
| <amOnPage url="{{CmsNewPagePage.url}}" stepKey="amOnPagePagesGrid"/> | ||
| <waitForPageLoad stepKey="waitForPageLoad1"/> | ||
| <waitForLoadingMaskToDisappear stepKey="wait2" /> | ||
| <click selector="{{CmsDesignSection.DesignTab}}" stepKey="clickOnDesignTab"/> | ||
| <waitForElementVisible selector="{{CmsDesignSection.LayoutDropdown}}" stepKey="waitForLayoutDropDown" /> | ||
| <seeOptionIsSelected selector="{{CmsDesignSection.LayoutDropdown}}" userInput="2 columns with right bar" stepKey="seeColumnsWithRightBar" /> | ||
| </test> | ||
| </tests> |
This file contains hidden or 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
49 changes: 49 additions & 0 deletions
49
app/code/Magento/Cms/Test/Mftf/Test/AdminCreateDuplicatedCmsPageTest.xml
This file contains hidden or 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,49 @@ | ||
| <?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="AdminCreateDuplicatedCmsPageTest"> | ||
| <annotations> | ||
| <features value="Cms"/> | ||
| <stories value="CMS Page Duplication and Reset Removal MAGETWO-87096"/> | ||
| <title value="Admin should be able to duplicate a CMS Page"/> | ||
| <description value="Admin should be able to duplicate a CMS Page"/> | ||
| <severity value="CRITICAL"/> | ||
| <testCaseId value="MAGETWO-89184"/> | ||
| <group value="Cms"/> | ||
| </annotations> | ||
| <before> | ||
| <actionGroup ref="LoginActionGroup" stepKey="loginGetFromGeneralFile"/> | ||
| <actionGroup ref="DisabledWYSIWYGActionGroup" stepKey="disableWYSIWYG"/> | ||
| </before> | ||
| <after> | ||
| <actionGroup ref="logout" stepKey="logout"/> | ||
| </after> | ||
| <amOnPage url="{{CmsNewPagePage.url}}" stepKey="amOnPageCreationForm"/> | ||
| <waitForPageLoad stepKey="waitForPageLoad1"/> | ||
| <!--Verify Save&Duplicate button and Save&Close button--> | ||
| <click selector="{{CmsNewPagePageActionsSection.expandSplitButton}}" stepKey="expandSplitBtn1" /> | ||
| <see selector="{{CmsNewPagePageActionsSection.saveAndDuplicate}}" userInput="Save & Duplicate" stepKey="seeSaveAndDuplicate"/> | ||
| <see selector="{{CmsNewPagePageActionsSection.saveAndClose}}" userInput="Save & Close" stepKey="seeSaveAndClose"/> | ||
| <!--Create new CMS Page page--> | ||
| <actionGroup ref="FillOutCMSPageContent" stepKey="FillOutBlockContent"/> | ||
| <click selector="{{CmsNewPagePageActionsSection.expandSplitButton}}" stepKey="expandSplitBtn2" /> | ||
| <click selector="{{CmsNewPagePageActionsSection.saveAndDuplicate}}" stepKey="clickSaveAndDuplicate" /> | ||
| <waitForPageLoad stepKey="waitForPageLoad3"/> | ||
| <see userInput="You saved the page." stepKey="seeSavedPageMsgOnForm"/> | ||
| <see userInput="You duplicated the page." stepKey="seeDuplicatedPageMsg"/> | ||
| <!--Verify duplicated CMS Page--> | ||
| <seeElement selector="{{BlockNewPageBasicFieldsSection.isActive('0')}}" stepKey="seeBlockNotEnable" /> | ||
| <actionGroup ref="AssertCMSPageContentActionGroup" stepKey="assertContent"/> | ||
| <click selector="{{CmsNewPagePageActionsSection.expandSplitButton}}" stepKey="expandSplitBtn3" /> | ||
| <click selector="{{CmsNewPagePageActionsSection.saveAndClose}}" stepKey="clickSaveAndClose"/> | ||
| <see userInput="You saved the page." stepKey="seeSavedCMSPageMsgOnGrid"/> | ||
| <seeElement selector="div[data-role='grid-wrapper']" stepKey="seeGridPage" /> | ||
| </test> | ||
| </tests> | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rogyar I don't remember, but it's no longer necessary to add this. How do you think?