|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /** |
| 4 | + * Copyright © Magento, Inc. All rights reserved. |
| 5 | + * See COPYING.txt for license details. |
| 6 | + */ |
| 7 | +--> |
| 8 | + |
| 9 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 11 | + <test name="StoreFrontMobileViewValidation"> |
| 12 | + <annotations> |
| 13 | + <features value="Cms"/> |
| 14 | + <title value="Mobile view page footer should stick to the bottom of page on Store front"/> |
| 15 | + <description value="Mobile view page footer should stick to the bottom of page on Store front"/> |
| 16 | + <severity value="MAJOR"/> |
| 17 | + <testCaseId value="MAGETWO-94333"/> |
| 18 | + <group value="Cms12"/> |
| 19 | + </annotations> |
| 20 | + <before> |
| 21 | + <createData entity="_longContentCmsPage" stepKey="createPreReqCMSPage"/> |
| 22 | + </before> |
| 23 | + <after> |
| 24 | + <deleteData createDataKey="createPreReqCMSPage" stepKey="deletePreReqCMSPage"/> |
| 25 | + </after> |
| 26 | + <resizeWindow width="375" height="812" stepKey="resizeWindowToDesktop"/> |
| 27 | + <amOnPage url="$$createPreReqCMSPage.identifier$$" stepKey="amOnPageTestPage"/> |
| 28 | + <waitForPageLoad stepKey="waitForPageLoad6" /> |
| 29 | + <!--check header/footer location on Storefront--> |
| 30 | + <executeJS function="return document.querySelector('{{StorefrontCMSPageFooterSection.footerSection}}').getBoundingClientRect().top" stepKey="topOfFooter"/> |
| 31 | + <assertGreaterThan stepKey="assertDefaultLoad"> |
| 32 | + <actualResult type="variable">topOfFooter</actualResult> |
| 33 | + <expectedResult type="string">812</expectedResult> |
| 34 | + </assertGreaterThan> |
| 35 | + <scrollTo selector="{{StorefrontCMSPageFooterSection.footerSection}}" stepKey="scrollToFooterSection"/> |
| 36 | + <executeJS function="return document.querySelector('{{StorefrontCMSPageFooterSection.footerSection}}').getBoundingClientRect().top" stepKey="bottomOfFooter"/> |
| 37 | + <executeJS function="return document.querySelector('{{StorefrontCMSPageSection.mainContent}}').getBoundingClientRect().bottom" stepKey="mainContent"/> |
| 38 | + <assertGreaterThan stepKey="assertAfterScroll"> |
| 39 | + <actualResult type="variable">bottomOfFooter</actualResult> |
| 40 | + <expectedResult type="variable">mainContent</expectedResult> |
| 41 | + </assertGreaterThan> |
| 42 | + </test> |
| 43 | +</tests> |
0 commit comments