Skip to content

Commit be32907

Browse files
committed
ACQE-7396 | [MFTF TESTS] TextAddTextWithCustomTinyMCETest
2 parents e03f234 + 798aebc commit be32907

File tree

2 files changed

+73
-45
lines changed

2 files changed

+73
-45
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Section/PageBuilderWYSIWYGSection/WYSIWYGOnPageBuilderInlineSection.xml

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@
1515
<element name="redo" type="button" selector=".tox-tinymce-inline button[aria-label='Redo']"/>
1616
<element name="formatSelector" type="button" selector=".tox-tinymce-inline button[aria-label='Format Paragraph']"/>
1717
<element name="fontSize" type="button" selector=".tox-tinymce-inline button[aria-label='Font sizes']"/>
18+
<element name="fontSize" type="button" selector=".tox-tinymce-inline button[aria-label*='font size']:nth-of-type(1)"/>
19+
<element name="fontSizeMinus" type="button" selector=".tox-tinymce-inline button[aria-label*='font size']:nth-of-type(1)"/>
20+
<element name="fontSizePlus" type="button" selector=".tox-tinymce-inline button[aria-label*='font size']:nth-of-type(2)"/>
1821
<element name="lineHeight" type="button" selector=".tox-tinymce-inline button[aria-label='Line height']"/>
19-
<element name="textColor" type="button" selector=".tox-tinymce-inline div[aria-label='Text color']"/>
20-
<element name="backgroundColor" type="button" selector=".tox-tinymce-inline div[aria-label='Background color']"/>
22+
<element name="textColor" type="button" selector=".tox-tinymce-inline div[aria-label='Text color Black']"/>
23+
<element name="backgroundColor" type="button" selector=".tox-tinymce-inline div[aria-label='Background color Black']"/>
2124
<element name="bold" type="button" selector=".tox-tinymce-inline button[aria-label='Bold']"/>
2225
<element name="italic" type="button" selector=".tox-tinymce-inline button[aria-label='Italic']"/>
2326
<element name="underline" type="button" selector=".tox-tinymce-inline button[aria-label='Underline']"/>
@@ -31,6 +34,7 @@
3134
<element name="table" type="button" selector=".tox-tinymce-inline button[aria-label='Table']"/>
3235
<element name="tableMenuFirstItem" type="text" selector="div[title='Table']"/>
3336
<element name="tableGrid" type="text" parameterized="true" selector="//div[@class='tox-insert-table-picker']//div[{{size}}]"/>
37+
<element name="fontSizeValue" type="text" parameterized="true" selector="//*[@data-mce-style and contains(@style, '{{size}}')]"/>
3438
<element name="tableToolbar" type="text" selector=".tox-pop .tox-pop__dialog .tox-toolbar"/>
3539
<element name="tableProperties" type="button" selector="button[aria-label='Table properties']"/>
3640
<element name="deleteTable" type="button" selector="button[aria-label='Delete table']"/>

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderTextTest/TextVerifyTinyMCEToolbarOnPageBuilderStageTest.xml

+67-43
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!--
2+
<!--”∏π
33
/**
44
* Copyright © Magento, Inc. All rights reserved.
55
* See COPYING.txt for license details.
@@ -48,55 +48,79 @@
4848
<seeElement selector="{{WYSIWYGOnPageBuilderInline.undo}}" stepKey="seeUndo"/>
4949
<seeElement selector="{{WYSIWYGOnPageBuilderInline.redo}}" stepKey="seeRedo"/>
5050
<seeElement selector="{{WYSIWYGOnPageBuilderInline.fontSize}}" stepKey="seeFontsize"/>
51+
5152
<seeElement selector="{{WYSIWYGOnPageBuilderInline.lineHeight}}" stepKey="seeLineHeight"/>
5253
<seeElement selector="{{WYSIWYGOnPageBuilderInline.textColor}}" stepKey="seeTextColor"/>
5354
<seeElement selector="{{WYSIWYGOnPageBuilderInline.backgroundColor}}" stepKey="seeBackgroundColor"/>
5455
<!--Verify FontSize-->
5556
<comment userInput="Verify FontSize" stepKey="commentVerifyFontSize"/>
56-
<click selector="{{WYSIWYGOnPageBuilderInline.fontSize}}" stepKey="clickOnFontSize"/>
57-
<see userInput="10px" stepKey="see10px"/>
58-
<see userInput="12px" stepKey="see12px"/>
59-
<see userInput="14px" stepKey="see14px"/>
60-
<see userInput="16px" stepKey="see16px"/>
61-
<see userInput="18px" stepKey="see18px"/>
62-
<see userInput="20px" stepKey="see20px"/>
63-
<see userInput="24px" stepKey="see24px"/>
64-
<see userInput="26px" stepKey="see26px"/>
65-
<see userInput="28px" stepKey="see28px"/>
66-
<see userInput="32px" stepKey="see32px"/>
67-
<see userInput="34px" stepKey="see34px"/>
68-
<see userInput="36px" stepKey="see36px"/>
69-
<see userInput="38px" stepKey="see38px"/>
70-
<see userInput="40px" stepKey="see40px"/>
71-
<see userInput="42px" stepKey="see42px"/>
72-
<see userInput="48px" stepKey="see48px"/>
73-
<see userInput="52px" stepKey="see52px"/>
74-
<see userInput="56px" stepKey="see56px"/>
75-
<see userInput="64px" stepKey="see64px"/>
76-
<see userInput="72px" stepKey="see72px"/>
57+
<comment userInput="BIC Workaround" stepKey="clickOnFontSize"/>
58+
59+
<click selector="{{WYSIWYGOnPageBuilderInline.fontSizeMinus}}" stepKey="clickOnFontSizeMinus"/>
60+
61+
<waitForElementVisible stepKey="see13px" selector="{{WYSIWYGOnPageBuilderInline.fontSizeValue('font-size: 13px')}}"/>
62+
<click selector="{{WYSIWYGOnPageBuilderInline.fontSizeMinus}}" stepKey="clickOnFontSizeMinusAgain"/>
63+
<waitForElementVisible stepKey="see12px" selector="//*[@data-mce-style and contains(@style, 'font-size: 12px')]" />
64+
<comment userInput="BIC Workaround" stepKey="see10px"/>
65+
<comment userInput="BIC Workaround" stepKey="see14px"/>
66+
<comment userInput="BIC Workaround" stepKey="see16px"/>
67+
<comment userInput="BIC Workaround" stepKey="see18px"/>
68+
<comment userInput="BIC Workaround" stepKey="see20px"/>
69+
<comment userInput="BIC Workaround" stepKey="see24px"/>
70+
<comment userInput="BIC Workaround" stepKey="see26px"/>
71+
<comment userInput="BIC Workaround" stepKey="see28px"/>
72+
<comment userInput="BIC Workaround" stepKey="see32px"/>
73+
<comment userInput="BIC Workaround" stepKey="see34px"/>
74+
<comment userInput="BIC Workaround" stepKey="see36px"/>
75+
<comment userInput="BIC Workaround" stepKey="see38px"/>
76+
<comment userInput="BIC Workaround" stepKey="see40px"/>
77+
<comment userInput="BIC Workaround" stepKey="see42px"/>
78+
<comment userInput="BIC Workaround" stepKey="see48px"/>
79+
<comment userInput="BIC Workaround" stepKey="see52px"/>
80+
<comment userInput="BIC Workaround" stepKey="see56px"/>
81+
<comment userInput="BIC Workaround" stepKey="see64px"/>
82+
<comment userInput="BIC Workaround" stepKey="see72px"/>
83+
<click selector="{{WYSIWYGOnPageBuilderInline.fontSizePlus}}" stepKey="clickOnFontSizePlus"/>
84+
<waitForElementVisible stepKey="see13pxAfterPlus" selector="//*[@data-mce-style and contains(@style, 'font-size: 13px')]" />
85+
<click selector="{{WYSIWYGOnPageBuilderInline.fontSizePlus}}" stepKey="clickOnFontSizePlusOne"/>
86+
<waitForElementVisible stepKey="see14pxAfterPlus" selector="//*[@data-mce-style and contains(@style, 'font-size: 14px')]" />
87+
<click selector="{{WYSIWYGOnPageBuilderInline.fontSizePlus}}" stepKey="clickOnFontSizePlusTwo"/>
88+
<waitForElementVisible stepKey="see15pxAfterPlus" selector="//*[@data-mce-style and contains(@style, 'font-size: 15px')]" />
89+
<click selector="{{WYSIWYGOnPageBuilderInline.fontSizePlus}}" stepKey="clickOnFontSizePlusThree"/>
90+
<waitForElementVisible stepKey="see16pxAfterPlus" selector="//*[@data-mce-style and contains(@style, 'font-size: 16px')]" />
91+
<click selector="{{WYSIWYGOnPageBuilderInline.fontSizePlus}}" stepKey="clickOnFontSizePlusFour"/>
92+
<waitForElementVisible stepKey="see17pxAfterPlus" selector="//*[@data-mce-style and contains(@style, 'font-size: 17px')]" />
93+
<click selector="{{WYSIWYGOnPageBuilderInline.fontSizePlus}}" stepKey="clickOnFontSizePlusFive"/>
94+
<waitForElementVisible stepKey="see18pxAfterPlus" selector="//*[@data-mce-style and contains(@style, 'font-size: 18px')]" />
95+
7796
<!--Verify LineHeight-->
78-
<comment userInput="Verify LineHeight" stepKey="commentVerifyLineHeight"/>
7997
<click selector="{{WYSIWYGOnPageBuilderInline.lineHeight}}" stepKey="clickOnLineHeight"/>
80-
<see userInput="10px" stepKey="seeLineHeight10px"/>
81-
<see userInput="12px" stepKey="seeLineHeight12px"/>
82-
<see userInput="14px" stepKey="seeLineHeight14px"/>
83-
<see userInput="16px" stepKey="seeLineHeight16px"/>
84-
<see userInput="18px" stepKey="seeLineHeight18px"/>
85-
<see userInput="20px" stepKey="seeLineHeight20px"/>
86-
<see userInput="24px" stepKey="seeLineHeight24px"/>
87-
<see userInput="26px" stepKey="seeLineHeight26px"/>
88-
<see userInput="28px" stepKey="seeLineHeight28px"/>
89-
<see userInput="32px" stepKey="seeLineHeight32px"/>
90-
<see userInput="34px" stepKey="seeLineHeight34px"/>
91-
<see userInput="36px" stepKey="seeLineHeight36px"/>
92-
<see userInput="38px" stepKey="seeLineHeight38px"/>
93-
<see userInput="40px" stepKey="seeLineHeight40px"/>
94-
<see userInput="42px" stepKey="seeLineHeight42px"/>
95-
<see userInput="48px" stepKey="seeLineHeight48px"/>
96-
<see userInput="52px" stepKey="seeLineHeight52px"/>
97-
<see userInput="56px" stepKey="seeLineHeight56px"/>
98-
<see userInput="64px" stepKey="seeLineHeight64px"/>
99-
<see userInput="72px" stepKey="seeLineHeight72px"/>
98+
<comment userInput="BIC Workaround" stepKey="seeLineHeight10px"/>
99+
<comment userInput="BIC Workaround" stepKey="seeLineHeight12px"/>
100+
<comment userInput="BIC Workaround" stepKey="seeLineHeight14px"/>
101+
<comment userInput="BIC Workaround" stepKey="seeLineHeight16px"/>
102+
<comment userInput="BIC Workaround" stepKey="seeLineHeight18px"/>
103+
<comment userInput="BIC Workaround" stepKey="seeLineHeight20px"/>
104+
<comment userInput="BIC Workaround" stepKey="seeLineHeight24px"/>
105+
<comment userInput="BIC Workaround" stepKey="seeLineHeight26px"/>
106+
<comment userInput="BIC Workaround" stepKey="seeLineHeight28px"/>
107+
<comment userInput="BIC Workaround" stepKey="seeLineHeight32px"/>
108+
<comment userInput="BIC Workaround" stepKey="seeLineHeight34px"/>
109+
<comment userInput="BIC Workaround" stepKey="seeLineHeight36px"/>
110+
<comment userInput="BIC Workaround" stepKey="seeLineHeight38px"/>
111+
<comment userInput="BIC Workaround" stepKey="seeLineHeight40px"/>
112+
<comment userInput="BIC Workaround" stepKey="seeLineHeight42px"/>
113+
<comment userInput="BIC Workaround" stepKey="seeLineHeight48px"/>
114+
<comment userInput="BIC Workaround" stepKey="seeLineHeight52px"/>
115+
<comment userInput="BIC Workaround" stepKey="seeLineHeight56px"/>
116+
<comment userInput="BIC Workaround" stepKey="seeLineHeight64px"/>
117+
<comment userInput="BIC Workaround" stepKey="seeLineHeight72px"/>
118+
<waitForText userInput="1.1" stepKey="seeValue1"/>
119+
<waitForText userInput="1.2" stepKey="seeValue2"/>
120+
<waitForText userInput="1.3" stepKey="seeValue3"/>
121+
<waitForText userInput="1.4" stepKey="seeValue4"/>
122+
<waitForText userInput="1.5" stepKey="seeValue5"/>
123+
<waitForText userInput="2" stepKey="seeValue6"/>
100124
<!--Verify FontStyle on preview-->
101125
<comment userInput="Verify FontStyle on preview" stepKey="commentVerifyFontsizeOnPreview"/>
102126
<clickWithLeftButton x="10" y="10" selector="{{TextOnStage.tinymce('1')}}" stepKey="focusOnEditorArea"/>

0 commit comments

Comments
 (0)