|
452 | 452 | <see userInput="{{PageBuilderTextContentTypeDefault.value}}" stepKey="seeTextContentType"/>
|
453 | 453 | <seeElement selector="{{StorefrontCMSPageSection.imageSource(ImageUpload3.fileName)}}" stepKey="assertMediaSource"/>
|
454 | 454 | <seeElement selector="{{TextOnStorefront.text('1', _ENV.MAGENTO_BASE_URL)}}" stepKey="waitForVariableStorefront"/>
|
455 |
| - <seeElement selector="{{TextOnStorefront.textAreaWidget('1', _ENV.MAGENTO_BASE_URL, $$createCMSPageB.identifier$$)}}" stepKey="waitForWidgetStorefront"/> |
| 455 | + <seeElement selector="{{TextOnStorefront.textAreaWidget('1', _ENV.MAGENTO_BASE_URL, '', $$createCMSPageB.identifier$$)}}" stepKey="waitForWidgetStorefront"/> |
456 | 456 | </test>
|
457 | 457 | <test name="TextSaveEmptyTextContentType">
|
458 | 458 | <annotations>
|
|
1666 | 1666 | </actionGroup>
|
1667 | 1667 | <waitForElementVisible selector="{{TextOnConfiguration.insertImageButton}}" stepKey="waitForInsertImage"/>
|
1668 | 1668 | <click selector="{{TextOnConfiguration.insertImageButton}}" stepKey="clickInsertImage"/>
|
| 1669 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
1669 | 1670 | <actionGroup ref="CreateImageFolder" stepKey="CreateImageFolder">
|
1670 | 1671 | <argument name="ImageFolder" value="ImageFolder"/>
|
1671 | 1672 | </actionGroup>
|
|
1676 | 1677 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
|
1677 | 1678 | <!-- Validate Stage -->
|
1678 | 1679 | <comment userInput="Validate Stage" stepKey="commentValidateStage"/>
|
1679 |
| - <waitForElementVisible selector="{{TextOnStage.textAreaText('1', ImageUpload3.value)}}" stepKey="waitForRawImageSourceToAppearInTextarea"/> |
| 1680 | + <actionGroup ref="assertTextareaContainsValue" stepKey="assertTextareaValueBeforeSave"> |
| 1681 | + <argument name="value" value="{{ImageUpload3.value}}"/> |
| 1682 | + <argument name="selector" value="{{TextOnStage.textArea('1')}}"/> |
| 1683 | + </actionGroup> |
1680 | 1684 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/>
|
1681 | 1685 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
|
1682 | 1686 | <!-- Validate Stage After Save -->
|
1683 | 1687 | <comment userInput="Validate Stage After Save" stepKey="commentValidateStage2"/>
|
1684 |
| - <waitForElementVisible selector="{{TextOnStage.textAreaText('1', ImageUpload3.value)}}" stepKey="waitForRawImageSourceToAppearInTextarea2"/> |
| 1688 | + <actionGroup ref="assertTextareaContainsValue" stepKey="assertTextareaValueAfterSave"> |
| 1689 | + <argument name="value" value="{{ImageUpload3.value}}"/> |
| 1690 | + <argument name="selector" value="{{TextOnStage.textArea('1')}}"/> |
| 1691 | + </actionGroup> |
1685 | 1692 | <!-- Validate Storefront -->
|
1686 | 1693 | <comment userInput="Validate Storefront" stepKey="commentValidateStorefront"/>
|
1687 | 1694 | <actionGroup ref="navigateToStoreFront" stepKey="navigateToStoreFront">
|
|
1770 | 1777 | <group value="pagebuilder"/>
|
1771 | 1778 | <group value="pagebuilder-text"/>
|
1772 | 1779 | <group value="pagebuilder-customBeforeAfter"/>
|
1773 |
| - <skip> |
1774 |
| - <issueId value="MC-3720"/> |
1775 |
| - </skip> |
1776 | 1780 | </annotations>
|
1777 | 1781 | <before>
|
1778 | 1782 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
|
1805 | 1809 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
|
1806 | 1810 | <!-- Validate Stage -->
|
1807 | 1811 | <comment userInput="Validate Stage" stepKey="commentValidateStage"/>
|
1808 |
| - <waitForElementVisible selector="{{TextOnStage.textAreaTextContains('1', PageBuilderTextArea_WidgetCMSPageLink.editPanelValue)}}" stepKey="waitForTextStage"/> |
| 1812 | + <executeJS function="return document.evaluate("{{TextOnStage.textArea('1')}}", document.body).iterateNext().value" stepKey="textareaValue"/> |
| 1813 | + <assertContains stepKey="assertTextareaContainsValue"> |
| 1814 | + <expectedResult type="string">{{PageBuilderTextArea_WidgetCMSPageLink.editPanelValue}}</expectedResult> |
| 1815 | + <actualResult type="variable">textareaValue</actualResult> |
| 1816 | + </assertContains> |
1809 | 1817 | <!-- Validate Edit Panel -->
|
1810 | 1818 | <comment userInput="Validate Edit Panel" stepKey="commentValidateEditPanel"/>
|
1811 | 1819 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage2">
|
|
1819 | 1827 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
|
1820 | 1828 | <!-- Validate Stage After Save -->
|
1821 | 1829 | <comment userInput="Validate Stage After Save" stepKey="commentValidateStage2"/>
|
1822 |
| - <waitForElementVisible selector="{{TextOnStage.textAreaTextContains('1', PageBuilderTextArea_WidgetCMSPageLink.editPanelValue)}}" stepKey="waitForTextStage2"/> |
| 1830 | + <executeJS function="return document.evaluate("{{TextOnStage.textArea('1')}}", document.body).iterateNext().value" stepKey="textareaValue2"/> |
| 1831 | + <assertContains stepKey="assertTextareaContainsValue2"> |
| 1832 | + <expectedResult type="string">{{PageBuilderTextArea_WidgetCMSPageLink.editPanelValue}}</expectedResult> |
| 1833 | + <actualResult type="variable">textareaValue2</actualResult> |
| 1834 | + </assertContains> |
1823 | 1835 | <!-- Validate Edit Panel -->
|
1824 | 1836 | <comment userInput="Validate Edit Panel After Save" stepKey="commentValidateEditPanel2"/>
|
1825 | 1837 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage3">
|
|
1833 | 1845 | </actionGroup>
|
1834 | 1846 | <!-- Validate Storefront -->
|
1835 | 1847 | <comment userInput="Validate Storefront" stepKey="commentValidateStorefront"/>
|
1836 |
| - <waitForElementVisible selector="{{TextOnStorefront.textAreaWidget('1', '{{_ENV.MAGENTO_BASE_URL}}', PageBuilderPageTitle.pageName)}}" stepKey="waitForTextStorefront"/> |
| 1848 | + <waitForElementVisible selector="{{TextOnStorefront.textAreaWidget('1', _ENV.MAGENTO_BASE_URL, 'text', PageBuilderPageTitle.pageName)}}" stepKey="waitForTextStorefront"/> |
1837 | 1849 | </test>
|
1838 | 1850 | <test name="TextDisabledWYSIWYGAddVariable">
|
1839 | 1851 | <annotations>
|
|
1878 | 1890 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
|
1879 | 1891 | <!-- Validate Stage -->
|
1880 | 1892 | <comment userInput="Validate Stage" stepKey="commentValidateStage"/>
|
1881 |
| - <waitForElementVisible selector="{{TextOnStage.textAreaTextContains('1', PageBuilderTextArea_VariableBaseURL.editPanelValue)}}" stepKey="waitForTextStage"/> |
| 1893 | + <executeJS function="return document.evaluate("{{TextOnStage.textArea('1')}}", document.body).iterateNext().value" stepKey="textareaValue1"/> |
| 1894 | + <assertContains stepKey="assertTextareaContainsValue1"> |
| 1895 | + <expectedResult type="string">{{PageBuilderTextArea_VariableBaseURL.editPanelValue}}</expectedResult> |
| 1896 | + <actualResult type="variable">textareaValue1</actualResult> |
| 1897 | + </assertContains> |
1882 | 1898 | <!-- Validate Edit Panel -->
|
1883 | 1899 | <comment userInput="Validate Edit Panel" stepKey="commentValidateEditPanel"/>
|
1884 | 1900 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage2">
|
|
1892 | 1908 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
|
1893 | 1909 | <!-- Validate Stage After Save -->
|
1894 | 1910 | <comment userInput="Validate Stage After Save" stepKey="commentValidateStage2"/>
|
1895 |
| - <waitForElementVisible selector="{{TextOnStage.textAreaTextContains('1', PageBuilderTextArea_VariableBaseURL.editPanelValue)}}" stepKey="waitForTextStage2"/> |
| 1911 | + <executeJS function="return document.evaluate("{{TextOnStage.textArea('1')}}", document.body).iterateNext().value" stepKey="textareaValue2"/> |
| 1912 | + <assertContains stepKey="assertTextareaContainsValue2"> |
| 1913 | + <expectedResult type="string">{{PageBuilderTextArea_VariableBaseURL.editPanelValue}}</expectedResult> |
| 1914 | + <actualResult type="variable">textareaValue2</actualResult> |
| 1915 | + </assertContains> |
1896 | 1916 | <!-- Validate Edit Panel -->
|
1897 | 1917 | <comment userInput="Validate Edit Panel After Save" stepKey="commentValidateEditPanel2"/>
|
1898 | 1918 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage3">
|
|
2122 | 2142 | <see userInput="{{PageBuilderTextContentTypeDefault.value}}" stepKey="seeTextContentType"/>
|
2123 | 2143 | <seeElement selector="{{StorefrontCMSPageSection.imageSource(ImageUpload3.fileName)}}" stepKey="assertMediaSource"/>
|
2124 | 2144 | <seeElement selector="{{TextOnStorefront.text('1', _ENV.MAGENTO_BASE_URL)}}" stepKey="waitForVariableStorefront"/>
|
2125 |
| - <seeElement selector="{{TextOnStorefront.textAreaWidget('1', _ENV.MAGENTO_BASE_URL, $$createCMSPageB.identifier$$)}}" stepKey="waitForWidgetStorefront"/> |
| 2145 | + <seeElement selector="{{TextOnStorefront.textAreaWidget('1', _ENV.MAGENTO_BASE_URL, '', $$createCMSPageB.identifier$$)}}" stepKey="waitForWidgetStorefront"/> |
2126 | 2146 | </test>
|
2127 | 2147 | </tests>
|
0 commit comments