File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed
app/code/Magento/Newsletter/Test/Mftf Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 7
7
-->
8
8
<actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
9
9
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
10
- <actionGroup name =" SwitchToIframeActionGroup " >
10
+ <actionGroup name =" SwitchToPreviewIframeActionGroup " >
11
11
<executeJS function =" document.getElementById('preview_iframe').sandbox.add('allow-scripts')" stepKey =" addSandboxValue" />
12
12
<wait time =" 10" stepKey =" waitBeforeSwitchToIframe" />
13
13
<switchToIFrame userInput =" preview_iframe" stepKey =" switchToIframe" />
Original file line number Diff line number Diff line change 51
51
<waitForPageLoad stepKey =" waitForPageLoad11" />
52
52
<click selector =" {{NewsletterWYSIWYGSection.Preview(_defaultNewsletter.name)}}" stepKey =" clickPreview" />
53
53
<switchToWindow stepKey =" switchToWindow" userInput =" action_window" />
54
- <actionGroup ref =" SwitchToIframeActionGroup " stepKey =" switchToIframe" />
54
+ <actionGroup ref =" SwitchToPreviewIframeActionGroup " stepKey =" switchToIframe" />
55
55
<!-- Verify that the text and image are present-->
56
56
<seeElement selector =" {{StorefrontNewsletterSection.mediaDescription}}" stepKey =" assertMediaDescription" />
57
57
<seeElementInDOM selector =" {{StorefrontNewsletterSection.imageSource(ImageUpload3.fileName)}}" stepKey =" assertMediaSource" />
Original file line number Diff line number Diff line change 83
83
<waitForPageLoad stepKey =" waitForPageLoad9" />
84
84
<click selector =" {{NewsletterWYSIWYGSection.Preview(_defaultNewsletter.name)}}" stepKey =" clickPreview1" />
85
85
<switchToWindow userInput =" action_window" stepKey =" switchToWindow1" />
86
- <actionGroup ref =" SwitchToIframeActionGroup " stepKey =" switchToIframe" />
86
+ <actionGroup ref =" SwitchToPreviewIframeActionGroup " stepKey =" switchToIframe" />
87
87
<!-- see Default Variable on Storefront-->
88
88
<see userInput =" {{_defaultVariable.city}}" stepKey =" seeDefaultVariable" />
89
89
<!-- see Custom Variable on Storefront-->
94
94
<amOnPage url =" {{NewsletterTemplateGrid.url}}" stepKey =" amOnTemplateGrid" />
95
95
<click selector =" {{NewsletterWYSIWYGSection.Preview(_defaultNewsletter.name)}}" stepKey =" clickPreview2" />
96
96
<switchToWindow userInput =" action_window" stepKey =" switchToWindow2" />
97
- <actionGroup ref =" SwitchToIframeActionGroup " stepKey =" switchToIframe1 " />
97
+ <actionGroup ref =" SwitchToPreviewIframeActionGroup " stepKey =" switchToIframeAfterVariableDelete " />
98
98
<!-- see custom variable blank-->
99
99
<dontSee userInput =" {{customVariable.html}}" stepKey =" dontSeeCustomVariableName" />
100
100
<closeTab stepKey =" closeTab" />
Original file line number Diff line number Diff line change 48
48
<waitForPageLoad stepKey =" waitForPageLoad10" />
49
49
<click selector =" {{NewsletterWYSIWYGSection.Preview(_defaultNewsletter.name)}}" stepKey =" clickPreview" />
50
50
<switchToWindow stepKey =" switchToWindow" userInput =" action_window" />
51
- <actionGroup ref =" SwitchToIframeActionGroup " stepKey =" switchToIframe" />
51
+ <actionGroup ref =" SwitchToPreviewIframeActionGroup " stepKey =" switchToIframe" />
52
52
<waitForText userInput =" Home page" stepKey =" waitForPageLoad9" />
53
53
<see userInput =" Home page" stepKey =" seeHomePageCMSPage" />
54
54
<closeTab stepKey =" closeTab" />
Original file line number Diff line number Diff line change 42
42
<waitForPageLoad stepKey =" waitForPageLoad3" />
43
43
<click selector =" {{NewsletterWYSIWYGSection.Preview(_defaultNewsletter.name)}}" stepKey =" clickPreview" />
44
44
<switchToWindow stepKey =" switchToWindow" userInput =" action_window" />
45
- <actionGroup ref =" SwitchToIframeActionGroup " stepKey =" switchToIframe" />
45
+ <actionGroup ref =" SwitchToPreviewIframeActionGroup " stepKey =" switchToIframe" />
46
46
<waitForText userInput =" Hello World From Newsletter Template!" stepKey =" waitForPageLoad2" />
47
47
<see userInput =" Hello World From Newsletter Template!" stepKey =" seeContent" />
48
48
<closeTab stepKey =" closeTab" />
You can’t perform that action at this time.
0 commit comments