|
| 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 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 9 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 10 | + <test name="AdminConfigureStoreInformationTest"> |
| 11 | + <annotations> |
| 12 | + <features value="Cms"/> |
| 13 | + <stories value="able to configure store information data"/> |
| 14 | + <title value="Admin Configure Store Information"/> |
| 15 | + <description value="As a Merchant I want to be able to configure store information data"/> |
| 16 | + <severity value="MAJOR"/> |
| 17 | + <testCaseId value="AC-3963"/> |
| 18 | + </annotations> |
| 19 | + <before> |
| 20 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginToBackend"/> |
| 21 | + </before> |
| 22 | + <after> |
| 23 | + <actionGroup ref="AdminSetStoreInformationConfigurationActionGroup" stepKey="resetStoreInformationConfig"> |
| 24 | + <argument name="storeName" value=""/> |
| 25 | + <argument name="storeHoursOfOperation" value=""/> |
| 26 | + <argument name="vatNumber" value=""/> |
| 27 | + <argument name="telephone" value=""/> |
| 28 | + <argument name="country" value=""/> |
| 29 | + <argument name="state" value=""/> |
| 30 | + <argument name="city" value=""/> |
| 31 | + <argument name="postcode" value=""/> |
| 32 | + <argument name="street" value=""/> |
| 33 | + </actionGroup> |
| 34 | + <actionGroup ref="DeletePageByUrlKeyActionGroup" stepKey="deletePage"> |
| 35 | + <argument name="UrlKey" value="{{_defaultCmsPage.identifier}}"/> |
| 36 | + </actionGroup> |
| 37 | + <actionGroup ref="EuropeanCountriesSystemCheckBoxActionGroup" stepKey="checkSystemValueConfig"/> |
| 38 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 39 | + </after> |
| 40 | + <!--Set StoreInformation configs data--> |
| 41 | + <actionGroup ref="AdminSetStoreInformationConfigurationActionGroup" stepKey="setStoreInformationConfigData"> |
| 42 | + <argument name="telephone" value="{{DE_Address_Berlin_Not_Default_Address.telephone}}"/> |
| 43 | + <argument name="country" value="{{DE_Address_Berlin_Not_Default_Address.country_id}}"/> |
| 44 | + <argument name="state" value="{{DE_Address_Berlin_Not_Default_Address.state}}"/> |
| 45 | + <argument name="city" value="{{DE_Address_Berlin_Not_Default_Address.city}}"/> |
| 46 | + <argument name="postcode" value="{{DE_Address_Berlin_Not_Default_Address.postcode}}"/> |
| 47 | + <argument name="street" value="{{DE_Address_Berlin_Not_Default_Address.street[0]}}"/> |
| 48 | + </actionGroup> |
| 49 | + <magentoCLI command="config:set {{SetEuropeanUnionCountries.path}} {{SetEuropeanUnionCountries.value}}" stepKey="selectEUCountries"/> |
| 50 | + <actionGroup ref="AdminOpenCMSPagesGridActionGroup" stepKey="navigateToCmsPageGrid"/> |
| 51 | + <click selector="{{CmsPagesPageActionsSection.addNewPageButton}}" stepKey="clickAddNewPage"/> |
| 52 | + <fillField selector="{{CmsNewPagePageBasicFieldsSection.pageTitle}}" userInput="{{_defaultCmsPage.title}}" stepKey="fillFieldTitle"/> |
| 53 | + <actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPage"/> |
| 54 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 55 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragRowToRootContainer"> |
| 56 | + <argument name="contentType" value="PageBuilderRowContentType"/> |
| 57 | + <argument name="containerTargetType" value="PageBuilderRootContainerContentType"/> |
| 58 | + </actionGroup> |
| 59 | + <actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandPageBuilderPanelMenuSection"> |
| 60 | + <argument name="contentType" value="PageBuilderTextContentType"/> |
| 61 | + </actionGroup> |
| 62 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragToStage"> |
| 63 | + <argument name="contentType" value="PageBuilderHtmlContentType"/> |
| 64 | + </actionGroup> |
| 65 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage"> |
| 66 | + <argument name="contentType" value="PageBuilderHtmlContentType"/> |
| 67 | + </actionGroup> |
| 68 | + <click selector="{{HtmlOnConfiguration.insertVariableButton}}" stepKey="clickInsertVariableButton"/> |
| 69 | + <waitForPageLoad stepKey="waitForPageToLoadForToInsertButtonForStoreName"/> |
| 70 | + <click selector="{{VariableSection.VariableRadio('General / Store Information / Store Name')}}" stepKey="selectDefaultVariable"/> |
| 71 | + <waitForPageLoad stepKey="waitForPageToLoadForToSelectDefaultVariableStoreName"/> |
| 72 | + <click selector="{{VariableSection.InsertWidget}}" stepKey="clickInsertVariableForStAds"/> |
| 73 | + <waitForPageLoad stepKey="waitForPageToLoadToSelectInsertVariableButtonForStAds"/> |
| 74 | + <click selector="{{HtmlOnConfiguration.insertVariableButton}}" stepKey="againClickInsertVariableButtonForStAds"/> |
| 75 | + <waitForPageLoad stepKey="againWaitForPageToLoadToSelectInsertVariableButtonForStAds"/> |
| 76 | + <click selector="{{VariableSection.VariableRadio('General / Store Information / Street Address')}}" stepKey="selectDefaultVariableForStAds"/> |
| 77 | + <waitForPageLoad stepKey="waitForPageToLoadForToSelectDefaultVariableStAds"/> |
| 78 | + <click selector="{{VariableSection.InsertWidget}}" stepKey="clickInsertVariableForStore"/> |
| 79 | + <waitForPageLoad stepKey="waitForPageToLoadForToInsertButtonForStore"/> |
| 80 | + <click selector="{{HtmlOnConfiguration.insertVariableButton}}" stepKey="againClickInsertVariableForStore"/> |
| 81 | + <waitForPageLoad stepKey="againWaitForPageToLoadToSelectInsertVariableButtonForStore"/> |
| 82 | + <click selector="{{VariableSection.VariableRadio('General / Store Information / City')}}" stepKey="selectDefaultVariableForStore"/> |
| 83 | + <waitForPageLoad stepKey="waitForPageToLoadForToSelectDefaultVariableStore"/> |
| 84 | + <click selector="{{VariableSection.InsertWidget}}" stepKey="clickInsertVariableForCode"/> |
| 85 | + <click selector="{{HtmlOnConfiguration.insertVariableButton}}" stepKey="clickInsertVariableAgainForCode"/> |
| 86 | + <waitForPageLoad stepKey="WaitForPageToLoadToSelectInsertVariableButtonForCode"/> |
| 87 | + <click selector="{{VariableSection.VariableRadio('General / Store Information / ZIP/Postal Code')}}" stepKey="selectDefaultVariableForCode"/> |
| 88 | + <waitForPageLoad stepKey="waitForPageToLoadForToSelectDefaultVariableCode"/> |
| 89 | + <click selector="{{VariableSection.InsertWidget}}" stepKey="clickInsertVariableForState"/> |
| 90 | + <click selector="{{HtmlOnConfiguration.insertVariableButton}}" stepKey="clickInsertVariableAgainForState"/> |
| 91 | + <waitForPageLoad stepKey="WaitForPageToLoadToSelectInsertVariableButtonForState"/> |
| 92 | + <click selector="{{VariableSection.VariableRadio('General / Store Information / Region/State')}}" stepKey="selectDefaultVariableForState"/> |
| 93 | + <waitForPageLoad stepKey="waitForPageToLoadForToSelectDefaultVariableForState"/> |
| 94 | + <click selector="{{VariableSection.InsertWidget}}" stepKey="clickInsertVariableForCountry"/> |
| 95 | + <click selector="{{HtmlOnConfiguration.insertVariableButton}}" stepKey="clickInsertVariableAgainForCountry"/> |
| 96 | + <waitForPageLoad stepKey="WaitForPageToLoadToSelectInsertVariableButtonForCountry"/> |
| 97 | + <click selector="{{VariableSection.VariableRadio('General / Store Information / Country')}}" stepKey="selectDefaultVariableForCountry"/> |
| 98 | + <waitForPageLoad stepKey="waitForPageToLoadForToSelectDefaultVariableForCountry"/> |
| 99 | + <click selector="{{VariableSection.InsertWidget}}" stepKey="clickInsertVariable"/> |
| 100 | + <waitForPageLoad stepKey="waitForLoad"/> |
| 101 | + <actionGroup ref="saveEditPanelSettingsFullScreen" stepKey="saveEditPanelSettings"/> |
| 102 | + <actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen"/> |
| 103 | + <click selector="{{CmsNewPagePageSeoSection.header}}" stepKey="clickExpandSearchEngineOptimisation"/> |
| 104 | + <fillField selector="{{CmsNewPagePageSeoSection.urlKey}}" userInput="{{_defaultCmsPage.identifier}}" stepKey="fillFieldUrlKey"/> |
| 105 | + <actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPageAgain"/> |
| 106 | + <amOnPage url="{{_defaultCmsPage.identifier}}" stepKey="amOnPageTestPageRefresh"/> |
| 107 | + <see userInput="New Store InformationAugsburger Strabe 41Berlin10789BerlinGermany" stepKey="seeCustomData" /> |
| 108 | + </test> |
| 109 | +</tests> |
0 commit comments