|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /** |
| 4 | + * Copyright © Magento, Inc. All rights reserved. |
| 5 | + * See COPYING.txt for license details. |
| 6 | + */ |
| 7 | +--> |
| 8 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 9 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 10 | + <test name="AdminCmsPageRichTextSupportOnStage" extends="AdminSaveCmsPageAfterCopyFromHeadingAndPasteToTextTest"> |
| 11 | + <annotations> |
| 12 | + <features value="PageBuilder"/> |
| 13 | + <stories value="Text"/> |
| 14 | + <title value="Page builder text elements support enriched content on stage"/> |
| 15 | + <description value="Ensure cms page text element supports enriched text copied from elsewhere on the page builder."/> |
| 16 | + <severity value="MAJOR"/> |
| 17 | + <useCaseId value="ACP2E-1954"/> |
| 18 | + <testCaseId value="AC-8924"/> |
| 19 | + <group value="pagebuilder"/> |
| 20 | + <group value="pagebuilder-text"/> |
| 21 | + </annotations> |
| 22 | + <!-- Verify page builder text element support formatted text pasted from clipboard --> |
| 23 | + <executeJS function="return !!document.querySelector('{{TextOnStage.textWrapper}}').getElementsByTagName('h2').length;" stepKey="isTextContainsH2Tag"/> |
| 24 | + <assertTrue stepKey="assertTextContainsH2Tag"> |
| 25 | + <actualResult type="variable">isTextContainsH2Tag</actualResult> |
| 26 | + </assertTrue> |
| 27 | + <executeJS function="return document.querySelector('{{TextOnStage.textWrapper}}').querySelector('h2').innerHTML;" stepKey="textOnStage"/> |
| 28 | + <executeJS function="return document.querySelector('{{TextOnStage.headingWrapper}}').querySelector('h2').innerHTML;" stepKey="headingOnStage"/> |
| 29 | + <assertEquals stepKey="assertBothTextAndHeadingContainsSameValue"> |
| 30 | + <expectedResult type="variable">headingOnStage</expectedResult> |
| 31 | + <actualResult type="variable">textOnStage</actualResult> |
| 32 | + </assertEquals> |
| 33 | + </test> |
| 34 | +</tests> |
0 commit comments