|
8 | 8 |
|
9 | 9 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
10 | 10 | xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
|
| 11 | + <test name="BannerPosterAddWYSIWYGLink"> |
| 12 | + <annotations> |
| 13 | + <features value="PageBuilder"/> |
| 14 | + <stories value="Banner"/> |
| 15 | + <title value="Poster - Verify User Can Add Link To WYSIWYG"/> |
| 16 | + <description value="Verify that a user can add a link to the WYSIWYG for Banner"/> |
| 17 | + <severity value="CRITICAL"/> |
| 18 | + <useCaseId value="MC-405"/> |
| 19 | + <testCaseId value="MC-3104"/> |
| 20 | + <group value="pagebuilder"/> |
| 21 | + <group value="pagebuilder-banner"/> |
| 22 | + <group value="pagebuilder-bannerPoster"/> |
| 23 | + </annotations> |
| 24 | + <before> |
| 25 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 26 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 27 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 28 | + </before> |
| 29 | + <after> |
| 30 | + <actionGroup ref="logout" stepKey="logout"/> |
| 31 | + </after> |
| 32 | + <actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle"> |
| 33 | + <argument name="contentType" value="PageBuilderBannerContentType"/> |
| 34 | + </actionGroup> |
| 35 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup"> |
| 36 | + <argument name="group" value="PageBuilderBannerContentType"/> |
| 37 | + </actionGroup> |
| 38 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragBannerIntoStage"> |
| 39 | + <argument name="contentType" value="PageBuilderBannerContentType"/> |
| 40 | + </actionGroup> |
| 41 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage"> |
| 42 | + <argument name="contentType" value="PageBuilderBannerContentType"/> |
| 43 | + </actionGroup> |
| 44 | + <!-- Add Link To WYSIWYG --> |
| 45 | + <comment userInput="Add Link To WYSIWYG" stepKey="commentAddLink"/> |
| 46 | + <actionGroup ref="insertLinkInWYSIWYG" stepKey="insertLinkInWYSIWYG"> |
| 47 | + <argument name="url" value="https://google.com"/> |
| 48 | + <argument name="textToDisplay" value="https://google.com"/> |
| 49 | + </actionGroup> |
| 50 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/> |
| 51 | + <!-- Validate Stage --> |
| 52 | + <comment userInput="Validate Stage" stepKey="commentValidateStage"/> |
| 53 | + <waitForElementVisible selector="{{BannerOnBackend.linkUrl(ExternalLink.googleUrl)}}" stepKey="waitForBannerStage"/> |
| 54 | + <!-- Save Page --> |
| 55 | + <comment userInput="Save Page" stepKey="commentSavePage"/> |
| 56 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
| 57 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 58 | + <!-- Validate Stage After Page Save --> |
| 59 | + <comment userInput="Validate Stage After Page Save" stepKey="commentValidateStage2"/> |
| 60 | + <waitForElementVisible selector="{{BannerOnBackend.linkUrl(ExternalLink.googleUrl)}}" stepKey="waitForBannerStage2"/> |
| 61 | + <!-- Validate Storefront --> |
| 62 | + <comment userInput="Validate Storefront" stepKey="commentValidateStorefront"/> |
| 63 | + <actionGroup ref="navigateToStoreFront" stepKey="navigateToStoreFront"> |
| 64 | + <argument name="contentType" value="PageBuilderBannerContentType"/> |
| 65 | + </actionGroup> |
| 66 | + <waitForElementVisible selector="{{BannerOnFrontend.linkUrl(ExternalLink.googleUrl)}}" stepKey="waitForBannerStorefront"/> |
| 67 | + |
| 68 | + </test> |
11 | 69 | <test name="BannerPosterButtonNeverShow">
|
12 | 70 | <annotations>
|
13 | 71 | <features value="PageBuilder"/>
|
|
134 | 192 | <seeElement selector="{{BannerOnFrontend.poster}}" stepKey="verifyPosterInFrontend2"/>
|
135 | 193 | <dontSeeElement selector="{{BannerOnFrontend.posterMobileWithMobileImage}}" stepKey="dontSeePosterInFrontendMobileWithMobileImage2"/>
|
136 | 194 | </test>
|
137 |
| - |
138 | 195 | <test name="BannerPosterButtonOnHover">
|
139 | 196 | <annotations>
|
140 | 197 | <features value="PageBuilder"/>
|
|
0 commit comments