File tree Expand file tree Collapse file tree 4 files changed +47
-6
lines changed
dev/tests/acceptance/tests/functional/Magento/FunctionalTest Expand file tree Collapse file tree 4 files changed +47
-6
lines changed Original file line number Diff line number Diff line change
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
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" ../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" DeleteCustomStoreActionGroup" >
12
+ <arguments >
13
+ <argument name =" storeGroupName" defaultValue =" customStoreGroup.name" />
14
+ </arguments >
15
+ <amOnPage stepKey =" amOnAdminSystemStorePage" url =" {{AdminSystemStorePage.url}}" />
16
+ <click stepKey =" resetSearchFilter" selector =" {{AdminStoresGridSection.resetButton}}" />
17
+ <fillField stepKey =" s17" selector =" {{AdminStoresGridSection.storeGrpFilterTextField}}" userInput =" {{storeGroupName}}" />
18
+ <click stepKey =" s19" selector =" {{AdminStoresGridSection.searchButton}}" />
19
+ <see stepKey =" s23" selector =" {{AdminStoresGridSection.storeGrpNameInFirstRow}}" userInput =" {{storeGroupName}}" />
20
+ <click stepKey =" clickEditExistingStoreRow" selector =" {{AdminStoresGridSection.storeGrpNameInFirstRow}}" />
21
+ <click stepKey =" clickDeleteStoreGroupButtonOnEditStorePage" selector =" {{AdminStoresMainActionsSection.deleteButton}}" />
22
+ <selectOption stepKey =" setCreateDbBackupToNo" selector =" {{AdminStoresDeleteStoreGroupSection.createDbBackup}}" userInput =" No" />
23
+ <click stepKey =" clickDeleteStoreGroupButtonOnDeleteStorePage" selector =" {{AdminStoresDeleteStoreGroupSection.deleteStoreGroupButton}}" />
24
+ </actionGroup >
25
+ </actionGroups >
Original file line number Diff line number Diff line change
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
+ <sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" ../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd" >
9
+ <section name =" AdminStoresDeleteStoreGroupSection" >
10
+ <element name =" createDbBackup" type =" select" selector =" #store_create_backup" />
11
+ <element name =" deleteStoreGroupButton" type =" button" selector =" #delete" timeout =" 30" />
12
+ </section >
13
+ </sections >
Original file line number Diff line number Diff line change 12
12
<element name =" createWebsiteButton" type =" button" selector =" #add" />
13
13
<element name =" saveButton" type =" button" selector =" #save" />
14
14
<element name =" backButton" type =" button" selector =" #back" />
15
+ <element name =" deleteButton" type =" button" selector =" #delete" timeout =" 30" />
15
16
</section >
16
17
</sections >
Original file line number Diff line number Diff line change 18
18
<createData stepKey =" product" entity =" SimpleOne" />
19
19
<createData stepKey =" secondProduct" entity =" SimpleOne" />
20
20
<createData stepKey =" customer" entity =" Simple_US_Customer" />
21
+ <!-- Create new store view and assign it to non default store -->
22
+ <actionGroup ref =" LoginAsAdmin" stepKey =" loginAsAdmin1" />
23
+ <actionGroup ref =" CreateCustomStoreViewActionGroup" stepKey =" createCustomStoreView" >
24
+ <argument name =" storeGroupName" value =" $$storeGroup.group[name]$$" />
25
+ </actionGroup >
21
26
</before >
22
27
<after >
23
28
<deleteData stepKey =" deleteFirstProduct" createDataKey =" product" />
24
29
<deleteData stepKey =" deleteSecondProduct" createDataKey =" secondProduct" />
25
30
<deleteData stepKey =" deleteCustomer" createDataKey =" customer" />
26
- <deleteData stepKey =" deleteStore" createDataKey =" storeGroup" />
31
+ <actionGroup ref =" DeleteCustomStoreActionGroup" stepKey =" deleteCustomStoreGroup" >
32
+ <argument name =" storeGroupName" value =" $$storeGroup.group[name]$$" />
33
+ </actionGroup >
27
34
<amOnPage url =" admin/admin/auth/logout/" stepKey =" amOnLogoutPage" />
28
35
</after >
29
- <!-- Create new store view and assign it to non default store -->
30
- <actionGroup ref =" LoginAsAdmin" stepKey =" loginAsAdmin1" />
31
- <actionGroup ref =" CreateCustomStoreViewActionGroup" stepKey =" createCustomStoreView" >
32
- <argument name =" storeGroupName" value =" $$storeGroup.group[name]$$" />
33
- </actionGroup >
34
36
<!-- Change products visibility on store-view level -->
35
37
<actionGroup ref =" SearchForProductOnBackendActionGroup" stepKey =" searchForProduct1" >
36
38
<argument name =" product" value =" $$product$$" />
You can’t perform that action at this time.
0 commit comments