Skip to content

Commit

Permalink
MAGETWO-91701: Newsletter subscription is not correctly updated when …
Browse files Browse the repository at this point in the history
…user is registered on 2 stores

- Updated automated test. Updated ActionGroup names.
  • Loading branch information
davgrigoryan1992 committed Aug 16, 2018
1 parent 5da5e4e commit 2cd1faf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</actionGroup>

<!--Create new website-->
<actionGroup name="AdminCreateWebsite">
<actionGroup name="AdminCreateWebsiteActGroup">
<!--Fill required fields-->
<click selector="{{AdminNewWebsiteSection.addWebSite}}" stepKey="clickOnCreateWebsiteButton"/>
<waitForPageLoad stepKey="waitFormToBeOpened"/>
Expand All @@ -29,7 +29,7 @@
</actionGroup>

<!--Create new store-->
<actionGroup name="AdminCreateNewStore">
<actionGroup name="AdminCreateNewStoreActGroup">
<!--Fill required fields-->
<click selector="{{AdminNewStoreGroupSection.create}}" stepKey="clickOnCreateStore"/>
<waitForPageLoad stepKey="waitFormToBeOpened"/>
Expand All @@ -43,7 +43,7 @@
</actionGroup>

<!--Create store view-->
<actionGroup name="AdminCreateStoreView">
<actionGroup name="AdminCreateStoreViewActGroup">
<!--Fill required fields-->
<click selector="{{AdminNewStoreSection.create}}" stepKey="clickOnCreateStoreView"/>
<waitForPageLoad stepKey="waitFormToBeOpened"/>
Expand Down Expand Up @@ -114,7 +114,7 @@
</actionGroup>

<!--Delete created Website -->
<actionGroup name="AdminDeleteWebsite">
<actionGroup name="AdminDeleteWebsiteActGroup">
<fillField stepKey="fillSearchWebsiteField" selector="{{AdminStoresGridSection.websiteFilterTextField}}" userInput="{{AdminTestData.testData}}"/>
<click stepKey="clickSearchButton" selector="{{AdminStoresGridSection.searchButton}}"/>
<see stepKey="verifyThatCorrectWebsiteFound" selector="{{AdminStoresGridSection.websiteNameInFirstRow}}" userInput="{{AdminTestData.testData}}"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
<!--Go to Stores.-->
<actionGroup ref="GoToAllStores" stepKey="goToAllStores"/>
<!--Create Website.-->
<actionGroup ref="AdminCreateWebsite" stepKey="adminCreateWebsite"/>
<actionGroup ref="AdminCreateWebsiteActGroup" stepKey="adminCreateWebsite"/>
<!--Create Store.-->
<actionGroup ref="AdminCreateNewStore" stepKey="adminCreateNewStore"/>
<actionGroup ref="AdminCreateNewStoreActGroup" stepKey="adminCreateNewStore"/>
<!--Create Store View.-->
<actionGroup ref="AdminCreateStoreView" stepKey="adminCreateStoreView"/>
<actionGroup ref="AdminCreateStoreViewActGroup" stepKey="adminCreateStoreView"/>
<!--Go to Stores -> Configuration -> Web.-->
<actionGroup ref="GoToStoresConfigurationWeb" stepKey="goToStoresConfigurationWeb"/>
<actionGroup ref="SelectYesInAddStoreCodeToUrlsField" stepKey="selectYesInAddStoreCodeToUrlsField"/>
Expand All @@ -55,7 +55,7 @@
<waitForPageLoad stepKey="waitForAdminPageLoaded"/>
<actionGroup ref="AdminDeleteCreatedCustomer" stepKey="adminDeleteCustomer"/>
<actionGroup ref="GoToAllStores" stepKey="goToAllStores"/>
<actionGroup ref="AdminDeleteWebsite" stepKey="adminDeleteWebsite"/>
<actionGroup ref="AdminDeleteWebsiteActGroup" stepKey="adminDeleteWebsite"/>
<actionGroup ref="GoToStoresConfigurationWeb" stepKey="goToStoresConfigurationWeb"/>
<actionGroup ref="AdminSetDefaultConfig" stepKey="adminSetDefaultConfig"/>
</after>
Expand Down

0 comments on commit 2cd1faf

Please sign in to comment.