|
322 | 322 | <see userInput="{{PageBuilderTextContentTypeDefault.value}}" stepKey="seeTextContentType"/>
|
323 | 323 | <seeElement selector="{{StorefrontCMSPageSection.imageSource(ImageUpload3.fileName)}}" stepKey="assertMediaSource"/>
|
324 | 324 | <seeElement selector="{{TextOnStorefront.text('1', _ENV.MAGENTO_BASE_URL)}}" stepKey="waitForVariableStorefront"/>
|
325 |
| - <seeElement selector="{{TextOnStorefront.textAreaWidget('1', _ENV.MAGENTO_BASE_URL, $$createCMSPageB.identifier$$)}}" stepKey="waitForWidgetStorefront"/> |
| 325 | + <seeElement selector="{{TextOnStorefront.textAreaWidget('1', _ENV.MAGENTO_BASE_URL, '', $$createCMSPageB.identifier$$)}}" stepKey="waitForWidgetStorefront"/> |
326 | 326 | </test>
|
327 | 327 | <test name="TextSaveEmptyTextContentType">
|
328 | 328 | <annotations>
|
|
1535 | 1535 | </actionGroup>
|
1536 | 1536 | <waitForElementVisible selector="{{TextOnConfiguration.insertImageButton}}" stepKey="waitForInsertImage"/>
|
1537 | 1537 | <click selector="{{TextOnConfiguration.insertImageButton}}" stepKey="clickInsertImage"/>
|
| 1538 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
1538 | 1539 | <actionGroup ref="CreateImageFolder" stepKey="CreateImageFolder">
|
1539 | 1540 | <argument name="ImageFolder" value="ImageFolder"/>
|
1540 | 1541 | </actionGroup>
|
|
1545 | 1546 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
|
1546 | 1547 | <!-- Validate Stage -->
|
1547 | 1548 | <comment userInput="Validate Stage" stepKey="commentValidateStage"/>
|
1548 |
| - <waitForElementVisible selector="{{TextOnStage.textAreaText('1', ImageUpload3.value)}}" stepKey="waitForRawImageSourceToAppearInTextarea"/> |
| 1549 | + <actionGroup ref="assertTextareaContainsValue" stepKey="assertTextareaValueBeforeSave"> |
| 1550 | + <argument name="value" value="{{ImageUpload3.value}}"/> |
| 1551 | + <argument name="selector" value="{{TextOnStage.textArea('1')}}"/> |
| 1552 | + </actionGroup> |
1549 | 1553 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/>
|
1550 | 1554 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
|
1551 | 1555 | <!-- Validate Stage After Save -->
|
1552 | 1556 | <comment userInput="Validate Stage After Save" stepKey="commentValidateStage2"/>
|
1553 |
| - <waitForElementVisible selector="{{TextOnStage.textAreaText('1', ImageUpload3.value)}}" stepKey="waitForRawImageSourceToAppearInTextarea2"/> |
| 1557 | + <actionGroup ref="assertTextareaContainsValue" stepKey="assertTextareaValueAfterSave"> |
| 1558 | + <argument name="value" value="{{ImageUpload3.value}}"/> |
| 1559 | + <argument name="selector" value="{{TextOnStage.textArea('1')}}"/> |
| 1560 | + </actionGroup> |
1554 | 1561 | <!-- Validate Storefront -->
|
1555 | 1562 | <comment userInput="Validate Storefront" stepKey="commentValidateStorefront"/>
|
1556 | 1563 | <actionGroup ref="navigateToStoreFront" stepKey="navigateToStoreFront">
|
|
1639 | 1646 | <group value="pagebuilder"/>
|
1640 | 1647 | <group value="pagebuilder-text"/>
|
1641 | 1648 | <group value="pagebuilder-customBeforeAfter"/>
|
1642 |
| - <skip> |
1643 |
| - <issueId value="MC-3720"/> |
1644 |
| - </skip> |
1645 | 1649 | </annotations>
|
1646 | 1650 | <before>
|
1647 | 1651 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
|
1674 | 1678 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
|
1675 | 1679 | <!-- Validate Stage -->
|
1676 | 1680 | <comment userInput="Validate Stage" stepKey="commentValidateStage"/>
|
1677 |
| - <waitForElementVisible selector="{{TextOnStage.textAreaTextContains('1', PageBuilderTextArea_WidgetCMSPageLink.editPanelValue)}}" stepKey="waitForTextStage"/> |
| 1681 | + <executeJS function="return document.evaluate("{{TextOnStage.textArea('1')}}", document.body).iterateNext().value" stepKey="textareaValue"/> |
| 1682 | + <assertContains stepKey="assertTextareaContainsValue"> |
| 1683 | + <expectedResult type="string">{{PageBuilderTextArea_WidgetCMSPageLink.editPanelValue}}</expectedResult> |
| 1684 | + <actualResult type="variable">textareaValue</actualResult> |
| 1685 | + </assertContains> |
1678 | 1686 | <!-- Validate Edit Panel -->
|
1679 | 1687 | <comment userInput="Validate Edit Panel" stepKey="commentValidateEditPanel"/>
|
1680 | 1688 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage2">
|
|
1688 | 1696 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
|
1689 | 1697 | <!-- Validate Stage After Save -->
|
1690 | 1698 | <comment userInput="Validate Stage After Save" stepKey="commentValidateStage2"/>
|
1691 |
| - <waitForElementVisible selector="{{TextOnStage.textAreaTextContains('1', PageBuilderTextArea_WidgetCMSPageLink.editPanelValue)}}" stepKey="waitForTextStage2"/> |
| 1699 | + <executeJS function="return document.evaluate("{{TextOnStage.textArea('1')}}", document.body).iterateNext().value" stepKey="textareaValue2"/> |
| 1700 | + <assertContains stepKey="assertTextareaContainsValue2"> |
| 1701 | + <expectedResult type="string">{{PageBuilderTextArea_WidgetCMSPageLink.editPanelValue}}</expectedResult> |
| 1702 | + <actualResult type="variable">textareaValue2</actualResult> |
| 1703 | + </assertContains> |
1692 | 1704 | <!-- Validate Edit Panel -->
|
1693 | 1705 | <comment userInput="Validate Edit Panel After Save" stepKey="commentValidateEditPanel2"/>
|
1694 | 1706 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage3">
|
|
1702 | 1714 | </actionGroup>
|
1703 | 1715 | <!-- Validate Storefront -->
|
1704 | 1716 | <comment userInput="Validate Storefront" stepKey="commentValidateStorefront"/>
|
1705 |
| - <waitForElementVisible selector="{{TextOnStorefront.textAreaWidget('1', '{{_ENV.MAGENTO_BASE_URL}}', PageBuilderPageTitle.pageName)}}" stepKey="waitForTextStorefront"/> |
| 1717 | + <waitForElementVisible selector="{{TextOnStorefront.textAreaWidget('1', _ENV.MAGENTO_BASE_URL, 'text', PageBuilderPageTitle.pageName)}}" stepKey="waitForTextStorefront"/> |
1706 | 1718 | </test>
|
1707 | 1719 | <test name="TextDisabledWYSIWYGAddVariable">
|
1708 | 1720 | <annotations>
|
|
1747 | 1759 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
|
1748 | 1760 | <!-- Validate Stage -->
|
1749 | 1761 | <comment userInput="Validate Stage" stepKey="commentValidateStage"/>
|
1750 |
| - <waitForElementVisible selector="{{TextOnStage.textAreaTextContains('1', PageBuilderTextArea_VariableBaseURL.editPanelValue)}}" stepKey="waitForTextStage"/> |
| 1762 | + <executeJS function="return document.evaluate("{{TextOnStage.textArea('1')}}", document.body).iterateNext().value" stepKey="textareaValue1"/> |
| 1763 | + <assertContains stepKey="assertTextareaContainsValue1"> |
| 1764 | + <expectedResult type="string">{{PageBuilderTextArea_VariableBaseURL.editPanelValue}}</expectedResult> |
| 1765 | + <actualResult type="variable">textareaValue1</actualResult> |
| 1766 | + </assertContains> |
1751 | 1767 | <!-- Validate Edit Panel -->
|
1752 | 1768 | <comment userInput="Validate Edit Panel" stepKey="commentValidateEditPanel"/>
|
1753 | 1769 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage2">
|
|
1761 | 1777 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
|
1762 | 1778 | <!-- Validate Stage After Save -->
|
1763 | 1779 | <comment userInput="Validate Stage After Save" stepKey="commentValidateStage2"/>
|
1764 |
| - <waitForElementVisible selector="{{TextOnStage.textAreaTextContains('1', PageBuilderTextArea_VariableBaseURL.editPanelValue)}}" stepKey="waitForTextStage2"/> |
| 1780 | + <executeJS function="return document.evaluate("{{TextOnStage.textArea('1')}}", document.body).iterateNext().value" stepKey="textareaValue2"/> |
| 1781 | + <assertContains stepKey="assertTextareaContainsValue2"> |
| 1782 | + <expectedResult type="string">{{PageBuilderTextArea_VariableBaseURL.editPanelValue}}</expectedResult> |
| 1783 | + <actualResult type="variable">textareaValue2</actualResult> |
| 1784 | + </assertContains> |
1765 | 1785 | <!-- Validate Edit Panel -->
|
1766 | 1786 | <comment userInput="Validate Edit Panel After Save" stepKey="commentValidateEditPanel2"/>
|
1767 | 1787 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage3">
|
|
1991 | 2011 | <see userInput="{{PageBuilderTextContentTypeDefault.value}}" stepKey="seeTextContentType"/>
|
1992 | 2012 | <seeElement selector="{{StorefrontCMSPageSection.imageSource(ImageUpload3.fileName)}}" stepKey="assertMediaSource"/>
|
1993 | 2013 | <seeElement selector="{{TextOnStorefront.text('1', _ENV.MAGENTO_BASE_URL)}}" stepKey="waitForVariableStorefront"/>
|
1994 |
| - <seeElement selector="{{TextOnStorefront.textAreaWidget('1', _ENV.MAGENTO_BASE_URL, $$createCMSPageB.identifier$$)}}" stepKey="waitForWidgetStorefront"/> |
| 2014 | + <seeElement selector="{{TextOnStorefront.textAreaWidget('1', _ENV.MAGENTO_BASE_URL, '', $$createCMSPageB.identifier$$)}}" stepKey="waitForWidgetStorefront"/> |
1995 | 2015 | </test>
|
1996 | 2016 | </tests>
|
0 commit comments