|
15 | 15 | <argument name="contentType" defaultValue="PageBuilderImageContentType"/>
|
16 | 16 | <argument name="file" defaultValue="PageBuilderImage_InvalidFileType"/>
|
17 | 17 | <argument name="section" defaultValue="ImageOnStageWithoutImageUploaded"/>
|
18 |
| - <argument name="sectionArea" defaultValue="ImageOnStageWithoutImageUploaded.base('1')" /> |
19 |
| - <argument name="attachInput" defaultValue="ImageOnStageWithoutImageUploaded.attachImageBtn" /> |
20 | 18 | <argument name="filePreview" defaultValue="ImageOnStageWithoutImageUploaded.imagePreview"/>
|
21 | 19 | <argument name="fileSource" defaultValue=""/>
|
22 | 20 | </arguments>
|
23 |
| - <waitForElementVisible selector="{{sectionArea}}" stepKey="waitForSectionArea"/> |
| 21 | + <waitForElementVisible selector="{{section.base('1')}}" stepKey="waitForSectionArea"/> |
24 | 22 | <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="unFocusContentArea"/>
|
25 |
| - <moveMouseOver selector="{{PageBuilderStage.contentTypeInStageByIndex(contentType.role, '1')}}" stepKey="hoverSectionArea"/> |
| 23 | + <moveMouseOver selector="{{section.base('1')}}" stepKey="hoverSectionArea"/> |
26 | 24 | <waitForPageLoad stepKey="waitForPageLoad"/>
|
27 |
| - <seeElement selector="{{PageBuilderStage.onHoverUploadImageButton(contentType.role, '1')}}" stepKey="seeUploadImageButton"/> |
28 |
| - <attachFile userInput="{{file.value}}" selector="{{attachInput}}" stepKey="attachFile"/> |
| 25 | + <waitForElementVisible selector="{{PageBuilderStage.onHoverUploadImageButton(contentType.role, '1')}}" stepKey="waitForUploadImageButton"/> |
| 26 | + <attachFile userInput="{{file.value}}" selector="{{section.uploadImageInput('1')}}" stepKey="attachFile"/> |
29 | 27 | <waitForPageLoad stepKey="waitForFileLoad"/>
|
30 | 28 | <waitForElementVisible selector="{{PageBuilderStage.modal}}" stepKey="waitForModal"/>
|
31 | 29 | <waitForElementVisible selector="{{PageBuilderStage.errorModalMessage(file.errorMessage)}}" stepKey="waitForModalMessage"/>
|
|
0 commit comments