Skip to content

Commit

Permalink
Merge pull request #2080 from magento-pangolin/MQE-741-2.3-develop
Browse files Browse the repository at this point in the history
[Pangolin] Deliver Test Fixes

- MQE-741: Two steps with same step key, the later step will overwrite the previous step
- MQE-799: Bump MFTF version to 2.0.3 and test fixes
  • Loading branch information
okolesnyk authored Feb 16, 2018
2 parents 8aaea59 + b03376d commit 2f888a3
Show file tree
Hide file tree
Showing 13 changed files with 71 additions and 71 deletions.
5 changes: 3 additions & 2 deletions dev/tests/acceptance/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,39 @@
*/
-->

<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
<test name="EnableDisableAdvancedReporting">
<annotations>
<features value="Analytics"/>
<stories value="Enable/disable Advanced Reporting"/>
<title value="Enable Disable Advanced Reporting"/>
<description value="An admin user can enable/disable Advanced Reporting."/>
<severity value="NORMAL"/>
<testCaseId value="MAGETWO-66465"/>
<group value="analytics"/>
</annotations>
<after>
<amOnPage stepKey="amOnLogoutPage" url="admin/admin/auth/logout/"/>
</after>
<actionGroup ref="LoginActionGroup" stepKey="loginAsAdmin"/>
<!--Goto admin stores configure page -->
<amOnPage stepKey="amOnAdminConfig" url="{{AdminConfigPage.url}}"/>
<!--Enable Advanced Reporting-->
<click stepKey="clickAdvancedReportingConfigMenu" selector="{{AdminConfigSection.advancedReportingMenuItem}}"/>
<see stepKey="seeAdvancedReportingServiceLabel" selector="{{AdminConfigSection.advancedReportingServiceLabel}}" userInput="Advanced Reporting Service"/>
<selectOption stepKey="selectAdvancedReportingService" selector="{{AdminConfigSection.advancedReportingService}}" userInput="Enable"/>
<see stepKey="seeAdvancedReportingIndustryLabel" selector="{{AdminConfigSection.advancedReportingIndustryLabel}}" userInput="Industry"/>
<selectOption stepKey="selectAdvancedReportingIndustry" selector="{{AdminConfigSection.advancedReportingIndustry}}" userInput="Apps and Games"/>
<click stepKey="clickSaveConfigButton" selector="{{AdminConfigSection.saveButton}}"/>
<see stepKey="seeSaveConfigurationMessage" selector="{{AdminConfigSection.advancedReportingSuccessMessage}}" userInput="You saved the configuration."/>
<see stepKey="seeAdvancedReportingService" selector="{{AdminConfigSection.advancedReportingService}}" userInput="Enable"/>
<see stepKey="seeAdvancedReportingServiceStatus" selector="{{AdminConfigSection.advancedReportingServiceStatus}}" userInput="Subscription status: Pending"/>
<!--Disable Advanced Reporting-->
<see stepKey="seeAdvancedReportingServiceLabel" selector="{{AdminConfigSection.advancedReportingServiceLabel}}" userInput="Advanced Reporting Service"/>
<selectOption stepKey="selectAdvancedReportingService" selector="{{AdminConfigSection.advancedReportingService}}" userInput="Disable"/>
<click stepKey="clickSaveConfigButton" selector="{{AdminConfigSection.saveButton}}"/>
<see stepKey="seeSaveConfigurationMessage" selector="{{AdminConfigSection.advancedReportingSuccessMessage}}" userInput="You saved the configuration."/>
<see stepKey="seeAdvancedReportingService" selector="{{AdminConfigSection.advancedReportingService}}" userInput="Disable"/>
<see stepKey="seeAdvancedReportingServiceStatus" selector="{{AdminConfigSection.advancedReportingServiceStatus}}" userInput="Subscription status: Disabled"/>

</test>
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
<test name="EnableDisableAdvancedReporting">
<annotations>
<features value="Analytics"/>
<stories value="Enable/disable Advanced Reporting"/>
<title value="Enable Disable Advanced Reporting"/>
<description value="An admin user can enable/disable Advanced Reporting."/>
<severity value="NORMAL"/>
<testCaseId value="MAGETWO-66465"/>
<group value="analytics"/>
</annotations>
<after>
<amOnPage stepKey="amOnLogoutPage" url="admin/admin/auth/logout/"/>
</after>
<actionGroup ref="LoginActionGroup" stepKey="loginAsAdmin"/>
<!--Goto admin stores configure page -->
<amOnPage stepKey="amOnAdminConfig" url="{{AdminConfigPage.url}}"/>
<!--Enable Advanced Reporting-->
<click stepKey="clickAdvancedReportingConfigMenu" selector="{{AdminConfigSection.advancedReportingMenuItem}}"/>
<see stepKey="seeAdvancedReportingServiceLabelEnabled" selector="{{AdminConfigSection.advancedReportingServiceLabel}}" userInput="Advanced Reporting Service"/>
<selectOption stepKey="selectAdvancedReportingServiceEnabled" selector="{{AdminConfigSection.advancedReportingService}}" userInput="Enable"/>
<see stepKey="seeAdvancedReportingIndustryLabel" selector="{{AdminConfigSection.advancedReportingIndustryLabel}}" userInput="Industry"/>
<selectOption stepKey="selectAdvancedReportingIndustry" selector="{{AdminConfigSection.advancedReportingIndustry}}" userInput="Apps and Games"/>
<click stepKey="clickSaveConfigButtonEnabled" selector="{{AdminConfigSection.saveButton}}"/>
<see stepKey="seeSaveConfigurationMessageEnabled" selector="{{AdminConfigSection.advancedReportingSuccessMessage}}" userInput="You saved the configuration."/>
<see stepKey="seeAdvancedReportingServiceEnabled" selector="{{AdminConfigSection.advancedReportingService}}" userInput="Enable"/>
<see stepKey="seeAdvancedReportingServiceStatusEnabled" selector="{{AdminConfigSection.advancedReportingServiceStatus}}" userInput="Subscription status: Pending"/>
<!--Disable Advanced Reporting-->
<see stepKey="seeAdvancedReportingServiceLabelDisabled" selector="{{AdminConfigSection.advancedReportingServiceLabel}}" userInput="Advanced Reporting Service"/>
<selectOption stepKey="selectAdvancedReportingServiceDisabled" selector="{{AdminConfigSection.advancedReportingService}}" userInput="Disable"/>
<click stepKey="clickSaveConfigButtonDisabled" selector="{{AdminConfigSection.saveButton}}"/>
<see stepKey="seeSaveConfigurationMessageDisabled" selector="{{AdminConfigSection.advancedReportingSuccessMessage}}" userInput="You saved the configuration."/>
<see stepKey="seeAdvancedReportingServiceDisabled" selector="{{AdminConfigSection.advancedReportingService}}" userInput="Disable"/>
<see stepKey="seeAdvancedReportingServiceStatusDisabled" selector="{{AdminConfigSection.advancedReportingServiceStatus}}" userInput="Subscription status: Disabled"/>
</test>
</tests>
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<fillField stepKey="fillUsernameNoReport" selector="{{AdminLoginFormSection.username}}" userInput="$$noReportUser.username$$"/>
<fillField stepKey="fillPasswordNoReport" selector="{{AdminLoginFormSection.password}}" userInput="$$noReportUser.password$$"/>
<click stepKey="clickOnSignIn2" selector="{{AdminLoginFormSection.signIn}}"/>
<waitForPageLoad stepKey="wait3" time="10"/>
<waitForPageLoad stepKey="wait5" time="10"/>
<amOnPage stepKey="amOnAdminConfig2" url="{{AdminConfigPage.url}}"/>
<dontSee stepKey="dontSeeAdvancedReportingConfigMenuItem" selector="{{AdminConfigSection.advancedReportingMenuItem}}" userInput="Advanced Reporting"/>
</test>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
<conditionalClick selector="{{ProductDescriptionWYSIWYGToolbarSection.StorageRootArrow}}" dependentSelector="{{ProductDescriptionWYSIWYGToolbarSection.checkIfArrowExpand}}" stepKey="clickArrowIfCloses1" visible="true"/>
<waitForText userInput="{{ImageFolder.name}}" stepKey="waitForNewFolder1" />
<click userInput="{{ImageFolder.name}}" stepKey="clickOnCreatedFolder1" />
<waitForLoadingMaskToDisappear stepKey="waitForLoading5" />
<waitForLoadingMaskToDisappear stepKey="waitForLoading4" />
<attachFile selector="{{ProductDescriptionWYSIWYGToolbarSection.BrowseUploadImage}}" userInput="{{ImageUpload.file}}" stepKey="uploadImage1"/>
<waitForLoadingMaskToDisappear stepKey="waitForLoading6" />
<waitForLoadingMaskToDisappear stepKey="waitForLoading5" />
<waitForElementVisible selector="{{ProductDescriptionWYSIWYGToolbarSection.image(ImageUpload.file)}}" stepKey="waitForUploadImage1" />
<seeElement selector="{{ProductDescriptionWYSIWYGToolbarSection.imageSelected(ImageUpload.file)}}" stepKey="seeImageSelected1" />
<see selector="{{ProductDescriptionWYSIWYGToolbarSection.DeleteSelectedBtn}}" userInput="Delete Selected" stepKey="seeDeleteBtn1"/>
Expand All @@ -60,10 +60,10 @@
<waitForElementNotVisible selector="{{ProductDescriptionWYSIWYGToolbarSection.image(ImageUpload.file)}}" stepKey="waitForImageDeleted1" />
<dontSeeElement selector="{{ProductDescriptionWYSIWYGToolbarSection.image(ImageUpload.file)}}" stepKey="dontSeeImage1" />
<attachFile selector="{{ProductDescriptionWYSIWYGToolbarSection.BrowseUploadImage}}" userInput="{{ImageUpload.file}}" stepKey="uploadImage2"/>
<waitForLoadingMaskToDisappear stepKey="waitForLoading7" />
<waitForLoadingMaskToDisappear stepKey="waitForLoading6" />
<waitForElementVisible selector="{{ProductDescriptionWYSIWYGToolbarSection.image(ImageUpload.file)}}" stepKey="waitForUploadImage2" />
<click selector="{{ProductDescriptionWYSIWYGToolbarSection.InsertFile}}" stepKey="clickInsertBtn1" />
<waitForLoadingMaskToDisappear stepKey="waitForLoading8" />
<waitForLoadingMaskToDisappear stepKey="waitForLoading7" />
<waitForElementVisible selector="{{ProductDescriptionWYSIWYGToolbarSection.OkBtn}}" stepKey="waitForOkBtn1" />
<fillField selector="{{ProductDescriptionWYSIWYGToolbarSection.ImageDescription}}" userInput="{{ImageUpload.content}}" stepKey="fillImageDescription1" />
<fillField selector="{{ProductDescriptionWYSIWYGToolbarSection.Height}}" userInput="{{ImageUpload.height}}" stepKey="fillImageHeight1" />
Expand All @@ -74,34 +74,33 @@
<waitForPageLoad stepKey="waitForPageLoad4" />
<click selector="{{ProductShortDescriptionWYSIWYGToolbarSection.Browse}}" stepKey="clickBrowse2" />
<waitForPageLoad stepKey="waitForPageLoad5" />
<waitForLoadingMaskToDisappear stepKey="waitForLoading9" />
<waitForLoadingMaskToDisappear stepKey="waitForLoading10" />
<waitForLoadingMaskToDisappear stepKey="waitForLoading8" />
<see selector="{{ProductShortDescriptionWYSIWYGToolbarSection.CancelBtn}}" userInput="Cancel" stepKey="seeCancelBtn2" />
<see selector="{{ProductShortDescriptionWYSIWYGToolbarSection.CreateFolder}}" userInput="Create Folder" stepKey="seeCreateFolderBtn2" />
<see selector="{{ProductShortDescriptionWYSIWYGToolbarSection.InsertFile}}" userInput="Add Selected" stepKey="seeAddSelectedBtn2" />
<attachFile selector="{{ProductShortDescriptionWYSIWYGToolbarSection.BrowseUploadImage}}" userInput="{{ImageUpload1.file}}" stepKey="uploadImage3"/>
<waitForElementVisible selector="{{ProductShortDescriptionWYSIWYGToolbarSection.image(ImageUpload1.file)}}" stepKey="waitForUploadImage3" />
<waitForLoadingMaskToDisappear stepKey="waitForLoading13" />
<waitForLoadingMaskToDisappear stepKey="waitForLoading9" />
<wait time="3" stepKey="waitMore" />
<waitForElement selector="{{ProductShortDescriptionWYSIWYGToolbarSection.DeleteSelectedBtn}}" stepKey="waitForDeletebtn" />
<see selector="{{ProductShortDescriptionWYSIWYGToolbarSection.DeleteSelectedBtn}}" userInput="Delete Selected" stepKey="seeDeleteBtn2"/>
<click selector="{{ProductShortDescriptionWYSIWYGToolbarSection.DeleteSelectedBtn}}" stepKey="clickDeleteSelected2" />
<waitForText userInput="OK" stepKey="waitForConfirm3" />
<click selector="{{ProductShortDescriptionWYSIWYGToolbarSection.confirmDelete}}" stepKey="confirmDelete2" />
<attachFile selector="{{ProductShortDescriptionWYSIWYGToolbarSection.BrowseUploadImage}}" userInput="{{ImageUpload1.file}}" stepKey="uploadImage4"/>
<waitForLoadingMaskToDisappear stepKey="waitForLoading14" />
<waitForLoadingMaskToDisappear stepKey="waitForLoading10" />
<waitForElementVisible selector="{{ProductShortDescriptionWYSIWYGToolbarSection.image(ImageUpload1.file)}}" stepKey="waitForUploadImage4" />
<click selector="{{ProductShortDescriptionWYSIWYGToolbarSection.InsertFile}}" stepKey="clickInsertBtn" />
<waitForLoadingMaskToDisappear stepKey="waitForLoading15" />
<waitForLoadingMaskToDisappear stepKey="waitForLoading11" />
<waitForElementVisible selector="{{ProductShortDescriptionWYSIWYGToolbarSection.OkBtn}}" stepKey="waitForOkBtn2" />
<fillField selector="{{ProductShortDescriptionWYSIWYGToolbarSection.ImageDescription}}" userInput="{{ImageUpload1.content}}" stepKey="fillImageDescription2" />
<fillField selector="{{ProductShortDescriptionWYSIWYGToolbarSection.Height}}" userInput="{{ImageUpload1.height}}" stepKey="fillImageHeight2" />
<click selector="{{ProductShortDescriptionWYSIWYGToolbarSection.OkBtn}}" stepKey="clickOkBtn2" />
<waitForPageLoad stepKey="waitForPageLoad6"/>
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProduct"/>
<waitForLoadingMaskToDisappear stepKey="waitForLoading13" />
<waitForLoadingMaskToDisappear stepKey="waitForLoading12" />
<amOnPage url="{{_defaultProduct.name}}.html" stepKey="navigateToProductPage"/>
<waitForPageLoad stepKey="waitForPageLoad2"/>
<waitForPageLoad stepKey="waitForPageLoad7"/>
<seeElement selector="{{StorefrontProductInfoMainSection.mediaDescription}}" stepKey="assertMediaDescription"/>
<seeElement selector="{{StorefrontProductInfoMainSection.mediaShortDescription}}" stepKey="assertMediaShortDescription"/>
<after>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<seeElement selector="{{ProductShortDescriptionWYSIWYGToolbarSection.InsertLink}}" stepKey="assertInfo25"/>
<seeElement selector="{{ProductShortDescriptionWYSIWYGToolbarSection.InsertImageIcon}}" stepKey="assertInfo26"/>
<seeElement selector="{{ProductShortDescriptionWYSIWYGToolbarSection.InsertTable}}" stepKey="assertInfo27"/>
<seeElement selector="{{ProductShortDescriptionWYSIWYGToolbarSection.SpecialCharacter}}" stepKey="assertInfo27"/>
<seeElement selector="{{ProductShortDescriptionWYSIWYGToolbarSection.SpecialCharacter}}" stepKey="assertInfo28"/>
<after>
<actionGroup ref="DisabledWYSIWYG" stepKey="disableWYSIWYG"/>
<actionGroup ref="logout" stepKey="logout"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<click selector="{{CmsPagesPageActionsSection.FilterBtn}}" stepKey="clickFiltersBtn" />
<fillField selector="{{CmsPagesPageActionsSection.URLKey}}" userInput="$$createCMSPage.identifier$$" stepKey="fillOutURLKey" />
<click selector="{{CmsPagesPageActionsSection.ApplyFiltersBtn}}" stepKey="clickApplyBtn" />
<waitForLoadingMaskToDisappear stepKey="waitForLoading9" />
<waitForLoadingMaskToDisappear stepKey="waitForLoading7" />
<actionGroup ref="SortByIdDescendingActionGroup" stepKey="sortByIdDescending" />
<waitForElementVisible selector="{{CmsPagesPageActionsSection.select('$$createCMSPage.identifier$$')}}" stepKey="waitForCMSPageGrid" />
<click selector="{{CmsPagesPageActionsSection.select('$$createCMSPage.identifier$$')}}" stepKey="clickSelect" />
Expand All @@ -89,16 +89,16 @@
<click selector="{{TinyMCESection.InsertWidgetIcon}}" stepKey="clickInsertWidgetIcon" />
<waitForPageLoad stepKey="waitForPageLoad8" />
<selectOption selector="{{WidgetSection.WidgetType}}" userInput="CMS Static Block" stepKey="selectCMSStaticBlock" />
<waitForLoadingMaskToDisappear stepKey="waitForLoading7" />
<waitForLoadingMaskToDisappear stepKey="waitForLoading8" />
<selectOption selector="{{WidgetSection.WidgetTemplate}}" userInput="CMS Static Block Default Template" stepKey="selectTemplate" />
<click selector="{{WidgetSection.BtnChooser}}" stepKey="clickSelectPageBtn" />
<waitForLoadingMaskToDisappear stepKey="waitForLoading8" />
<waitForLoadingMaskToDisappear stepKey="waitForLoading9" />
<actionGroup ref="SortByIdDescendingActionGroup" stepKey="sortByIdDescending2" />
<waitForElementVisible selector="{{WidgetSection.BlockPage(_defaultBlock.identifier)}}" stepKey="waitForBlockTitle" />
<click selector="{{WidgetSection.BlockPage(_defaultBlock.identifier)}}" stepKey="selectPreCreateBlock" />
<wait time="3" stepKey="wait1" />
<click selector="{{WidgetSection.InsertWidget}}" stepKey="clickInsertWidgetBtn" />
<waitForLoadingMaskToDisappear stepKey="waitForLoading9" />
<waitForLoadingMaskToDisappear stepKey="waitForLoading10" />
<waitForPageLoad stepKey="waitForPageLoad9" />
<click selector="{{CmsNewPagePageActionsSection.savePage}}" stepKey="clickSavePage"/>
<waitForPageLoad stepKey="waitForPageLoad10"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@
<see userInput="{{customVariable.html}}" stepKey="seeCustomVariable2" />
<!--Delete Custom Variable-->
<actionGroup ref="DeleteCustomVariableActionGroup" stepKey="deleteCustomVariable" />
<actionGroup ref="ClearCacheActionGroup" stepKey="clearCache" />
<!--Refresh Storefront-->
<amOnPage url="{{_defaultCmsPage.identifier}}" stepKey="amOnPageTestPage"/>
<amOnPage url="{{_defaultCmsPage.identifier}}" stepKey="amOnPageTestPageRefresh"/>
<waitForPageLoad stepKey="waitForPageLoad7" />
<!--see custom variable blank-->
<dontSee userInput="{{customVariable.html}}" stepKey="dontSeeCustomVariableName" />
Expand Down
Loading

0 comments on commit 2f888a3

Please sign in to comment.