|
38 | 38 | </after>
|
39 | 39 | <amOnPage url="{{DesignConfigPage.url}}" stepKey="navigateToDesignConfigPage" />
|
40 | 40 | <waitForPageLoad stepKey="waitForDesignConfigPageLoad"/>
|
| 41 | + <waitForElementClickable selector="{{AdminDesignConfigSection.scopeRow('3')}}" stepKey="waitForScopeRowClickable"/> |
41 | 42 | <click selector="{{AdminDesignConfigSection.scopeRow('3')}}" stepKey="editStoreView"/>
|
42 |
| - <waitForPageLoad stepKey="waitForAdminDesignConfigSectionPageLoad"/> |
| 43 | + <waitForElementVisible selector="{{AdminDesignConfigSection.headerSection}}" stepKey="waitForAdminDesignConfigHeaderSectionVisible"/> |
43 | 44 | <scrollTo selector="{{AdminDesignConfigSection.headerSection}}" stepKey="scrollToHtmlHeadSection"/>
|
44 | 45 | <click selector="{{AdminDesignConfigSection.headerSection}}" stepKey="openHtmlHeadSection"/>
|
45 | 46 | <!--Upload the First Image-->
|
|
61 | 62 | <actionGroup ref="SaveImageActionGroup" stepKey="insertImage"/>
|
62 | 63 | <click selector="{{AdminDesignConfigSection.saveConfiguration}}" stepKey="saveConfiguration"/>
|
63 | 64 | <waitForElementVisible selector="{{AdminDesignConfigSection.successNotification}}" stepKey="waitForSuccessNotification"/>
|
64 |
| - <waitForPageLoad stepKey="waitForPageLoadSuccess"/> |
65 | 65 | <!--Clear Cache-->
|
66 | 66 | <actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCacheAfterFirstImageUpload">
|
67 | 67 | <argument name="tags" value=""/>
|
|
70 | 70 | <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToHomePage"/>
|
71 | 71 | <waitForPageLoad stepKey="waitToLoadHomePage"/>
|
72 | 72 | <!--assert to check first uploaded image name-->
|
73 |
| - <seeElementInDOM selector="{{StorefrontHeaderSection.logoImage(ImageUpload3.fileName)}}" stepKey="assertMediaSource"/> |
74 |
| - <!-- Enable Single Store Mode --> |
| 73 | + <waitForElement selector="{{StorefrontHeaderSection.logoImage(ImageUpload3.fileName)}}" stepKey="waitForLogoImageVisible"/> |
| 74 | + <!-- Enable Single Store Mode --> |
75 | 75 | <magentoCLI command="config:set general/single_store_mode/enabled 1" stepKey="enabledSingleStoreMode"/>
|
76 | 76 | <!--Clear Cache-->
|
77 | 77 | <actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCacheAfterSingleStoreModeEnabled">
|
|
103 | 103 | <actionGroup ref="SaveImageActionGroup" stepKey="insertSecondImage"/>
|
104 | 104 | <click selector="{{AdminDesignConfigSection.saveConfiguration}}" stepKey="saveConfigurationForSecondImage"/>
|
105 | 105 | <waitForElementVisible selector="{{AdminDesignConfigSection.successNotification}}" stepKey="waitForSuccessNotificationForSecondImage"/>
|
106 |
| - <waitForPageLoad stepKey="waitForPageLoadSuccessForSecondImage"/> |
107 | 106 | <!--Clear Cache-->
|
108 | 107 | <actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCacheAfterSecondImageUpload">
|
109 | 108 | <argument name="tags" value=""/>
|
|
112 | 111 | <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToStoreFrontHomePage"/>
|
113 | 112 | <waitForPageLoad stepKey="waitToLoadStoreFrontHomePage"/>
|
114 | 113 | <!--assert to check second uploaded image name-->
|
115 |
| - <seeElementInDOM selector="{{StorefrontHeaderSection.logoImage(ImageUpload.fileName)}}" stepKey="assertUploadedImage"/> |
| 114 | + <waitForElement selector="{{StorefrontHeaderSection.logoImage(ImageUpload.fileName)}}" stepKey="waitForSecondLogoImageVisible"/> |
116 | 115 | <!--Navigate to Store View to delete uploaded logo-->
|
117 | 116 | <amOnPage url="{{DesignConfigPage.url}}" stepKey="navigateToDesignConfigPageToDeleteUploadedLogo"/>
|
118 |
| - <waitForPageLoad stepKey="waitForNavigateDesignConfigPageLoad"/> |
| 117 | + <waitForElementClickable selector="{{AdminDesignConfigSection.scopeRow('1')}}" stepKey="waitForScopeRow1Clickable"/> |
119 | 118 | <click selector="{{AdminDesignConfigSection.scopeRow('1')}}" stepKey="editStoreViewForScopeRow"/>
|
120 | 119 | <waitForPageLoad stepKey="waitForPageLoadAfterSelectingScopeRow"/>
|
121 | 120 | <scrollTo selector="{{AdminDesignConfigSection.headerSection}}" stepKey="scrollToHtmlHeadSectionToDeleteImage"/>
|
|
0 commit comments