Skip to content

Commit

Permalink
Refactoring-AdminCreateStoreViewTest
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-kyzyma committed Nov 5, 2021
1 parent b7b5d58 commit 1d704b6
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions app/code/Magento/Store/Test/Mftf/Test/AdminCreateStoreViewTest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,19 @@
</after>

<!--Filter grid and see created store view-->
<actionGroup ref="AdminSystemStoreOpenPageActionGroup" stepKey="navigateToStoresIndex"/>
<click selector="{{AdminStoresGridSection.resetButton}}" stepKey="resetSearchFilter"/>
<fillField selector="{{AdminStoresGridSection.storeFilterTextField}}" userInput="{{customStore.name}}" stepKey="fillStoreViewFilterField"/>
<click selector="{{AdminStoresGridSection.searchButton}}" stepKey="clickSearch"/>
<see selector="{{AdminStoresGridSection.gridCell('1', 'Store View')}}" userInput="{{customStore.name}}" stepKey="seeNewStoreView"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="navigateToStoresIndex"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="resetSearchFilter"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillStoreViewFilterField"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickSearch"/>
<actionGroup ref="AssertStoreViewInGridActionGroup" stepKey="seeNewStoreView">
<argument name="storeViewName" value="{{customStore.name}}"/>
</actionGroup>
<!--Try to create store view with the same code-->
<actionGroup ref="AdminCreateStoreViewWithoutCheckActionGroup" stepKey="createSameStoreView"/>
<dontSeeElement selector="{{AdminMessagesSection.success}}" stepKey="dontSeeSuccessMessage"/>
<see selector="{{AdminMessagesSection.error}}" userInput="Store with the same code already exists." stepKey="seeErrorMessage"/>
<actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeErrorMessage">
<argument name="message" value="Store with the same code already exists."/>
<argument name="messageType" value="error" />
</actionGroup>
</test>
</tests>

0 comments on commit 1d704b6

Please sign in to comment.