File tree Expand file tree Collapse file tree 6 files changed +48
-16
lines changed
dev/tests/acceptance/tests/functional/Magento/FunctionalTest Expand file tree Collapse file tree 6 files changed +48
-16
lines changed Original file line number Diff line number Diff line change 30
30
<data key =" is_active" >true</data >
31
31
<data key =" current_password" >123123q</data >
32
32
</entity >
33
- <entity name =" restrictedCatalogProductUser " type =" user" >
34
- <data key =" username" unique =" suffix" >restrictedUser </data >
35
- <data key =" firstname" >RestrictedCatalogUser </data >
36
- <data key =" lastname" >Product </data >
33
+ <entity name =" restrictedCatalogUser " type =" user" >
34
+ <data key =" username" unique =" suffix" >restrictedCatalogUser </data >
35
+ <data key =" firstname" >restricted </data >
36
+ <data key =" lastname" >catalogUser </data >
37
37
<data key =" email" unique =" prefix" >restrictedCatalogUser@example.com</data >
38
38
<data key =" password" >123123q</data >
39
39
<data key =" password_confirmation" >123123q</data >
Original file line number Diff line number Diff line change 21
21
22
22
<after >
23
23
<actionGroup ref =" ResetWebUrlOptions" stepKey =" resetUrlOption" />
24
- <actionGroup ref =" AdminDeleteWebsiteActionGroup" stepKey =" deleteWebsite" />
24
+ <actionGroup ref =" AdminDeleteWebsiteActionGroup" stepKey =" deleteTestWebsite" >
25
+ <argument name =" websiteName" value =" Second Website" />
26
+ </actionGroup >
25
27
26
28
<amOnPage url =" admin/admin/auth/logout/" stepKey =" amOnLogoutPage" />
27
29
</after >
28
30
<actionGroup ref =" LoginAsAdmin" stepKey =" loginAsAdmin" />
29
31
<actionGroup ref =" EnableWebUrlOptions" stepKey =" addStoreCodeToUrls" />
30
- <actionGroup ref =" AdminCreateWebsiteActionGroup" stepKey =" addnewWebsite" />
31
- <actionGroup ref =" AdminCreateNewStoreGroupActionGroup" stepKey =" addNewStoreGroup" />
32
+
33
+ <!-- Create new website -->
34
+ <actionGroup ref =" AdminCreateWebsiteActionGroup" stepKey =" createAdditionalWebsite" >
35
+ <argument name =" newWebsiteName" value =" Second Website" />
36
+ <argument name =" websiteCode" value =" second_website" />
37
+ </actionGroup >
38
+
39
+ <!-- Create new Store Group -->
40
+ <actionGroup ref =" AdminCreateNewStoreGroupActionGroup" stepKey =" createNewStore" >
41
+ <argument name =" website" value =" Second Website" />
42
+ <argument name =" storeGroupName" value =" Second Store" />
43
+ <argument name =" storeGroupCode" value =" second_store" />
44
+ </actionGroup >
32
45
33
46
<!-- Create Store view -->
34
47
<amOnPage url =" {{AdminSystemStorePage.url}}" stepKey =" amOnAdminSystemStorePage" />
Original file line number Diff line number Diff line change 78
78
</after >
79
79
80
80
<actionGroup ref =" EnableWebUrlOptions" stepKey =" addStoreCodeToUrls" />
81
- <actionGroup ref =" AdminCreateWebsiteActionGroup" stepKey =" addnewWebsite" />
82
- <actionGroup ref =" AdminCreateNewStoreGroupActionGroup" stepKey =" addNewStoreGroup" />
81
+ <actionGroup ref =" AdminCreateWebsiteActionGroup" stepKey =" addNewWebsite" >
82
+ <argument name =" newWebsiteName" value =" Second Website" />
83
+ <argument name =" websiteCode" value =" second_website" />
84
+ </actionGroup >
85
+ <actionGroup ref =" AdminCreateNewStoreGroupActionGroup" stepKey =" addNewStoreGroup" >
86
+ <argument name =" website" value =" Second Website" />
87
+ <argument name =" storeGroupName" value =" Second Store" />
88
+ <argument name =" storeGroupCode" value =" second_store" />
89
+ </actionGroup >
83
90
84
91
<!-- Create Store view -->
85
92
<amOnPage url =" {{AdminSystemStorePage.url}}" stepKey =" amOnAdminSystemStorePage" />
Original file line number Diff line number Diff line change 9
9
<actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
10
xsi : noNamespaceSchemaLocation =" ../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd" >
11
11
<actionGroup name =" AdminCreateNewStoreGroupActionGroup" >
12
+ <arguments >
13
+ <argument name =" website" type =" string" />
14
+ <argument name =" storeGroupName" type =" string" />
15
+ <argument name =" storeGroupCode" type =" string" />
16
+ </arguments >
12
17
<amOnPage url =" {{AdminSystemStoreGroupPage.url}}" stepKey =" navigateToNewStoreView" />
13
18
<waitForPageLoad stepKey =" waitForPageLoad1" />
14
19
<!-- Create Store group -->
15
- <selectOption selector =" {{AdminNewStoreGroupSection.storeGrpWebsiteDropdown}}" userInput =" Second Website " stepKey =" selectWebsite" />
16
- <fillField selector =" {{AdminNewStoreGroupSection.storeGrpNameTextField}}" userInput =" Second Store " stepKey =" enterStoreGroupName" />
17
- <fillField selector =" {{AdminNewStoreGroupSection.storeGrpCodeTextField}}" userInput =" second_store " stepKey =" enterStoreGroupCode" />
20
+ <selectOption selector =" {{AdminNewStoreGroupSection.storeGrpWebsiteDropdown}}" userInput =" {{website}} " stepKey =" selectWebsite" />
21
+ <fillField selector =" {{AdminNewStoreGroupSection.storeGrpNameTextField}}" userInput =" {{storeGroupName}} " stepKey =" enterStoreGroupName" />
22
+ <fillField selector =" {{AdminNewStoreGroupSection.storeGrpCodeTextField}}" userInput =" {{storeGroupCode}} " stepKey =" enterStoreGroupCode" />
18
23
<selectOption selector =" {{AdminNewStoreGroupSection.storeRootCategoryDropdown}}" userInput =" Default Category" stepKey =" chooseRootCategory" />
19
24
<click selector =" {{AdminStoreGroupActionsSection.saveButton}}" stepKey =" clickSaveStoreGroup" />
20
25
<waitForElementVisible selector =" {{AdminStoresGridSection.storeGrpFilterTextField}}" stepKey =" waitForStoreGridReload" />
Original file line number Diff line number Diff line change 9
9
<actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
10
xsi : noNamespaceSchemaLocation =" ../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd" >
11
11
<actionGroup name =" AdminCreateWebsiteActionGroup" >
12
+ <arguments >
13
+ <argument name =" newWebsiteName" type =" string" />
14
+ <argument name =" websiteCode" type =" string" />
15
+ </arguments >
12
16
<amOnPage url =" {{AdminSystemStoreWebsitePage.url}}" stepKey =" navigateToNewWebsitePage" />
13
17
<waitForPageLoad stepKey =" waitForStoresPageLoad" />
14
18
<!-- Create Website-->
15
- <fillField selector =" {{AdminNewWebsiteSection.name}}" userInput =" Second Website " stepKey =" enterWebsiteName" />
16
- <fillField selector =" {{AdminNewWebsiteSection.code}}" userInput =" second_website " stepKey =" enterWebsiteCode" />
19
+ <fillField selector =" {{AdminNewWebsiteSection.name}}" userInput =" {{newWebsiteName}} " stepKey =" enterWebsiteName" />
20
+ <fillField selector =" {{AdminNewWebsiteSection.code}}" userInput =" {{websiteCode}} " stepKey =" enterWebsiteCode" />
17
21
<click selector =" {{AdminNewWebsiteActionsSection.saveWebsite}}" stepKey =" clickSaveWebsite" />
18
22
<waitForElementVisible selector =" {{AdminStoresGridSection.websiteFilterTextField}}" stepKey =" waitForStoreGridToReload" />
19
23
<see userInput =" You saved the website." stepKey =" seeSavedMessage" />
Original file line number Diff line number Diff line change 8
8
<actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
9
9
xsi : noNamespaceSchemaLocation =" ../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd" >
10
10
<actionGroup name =" AdminDeleteWebsiteActionGroup" >
11
+ <arguments >
12
+ <argument name =" websiteName" type =" string" />
13
+ </arguments >
11
14
<amOnPage url =" {{AdminSystemStorePage.url}}" stepKey =" amOnAdminSystemStorePage" />
12
15
<click selector =" {{AdminStoresGridSection.resetButton}}" stepKey =" resetSearchFilter" />
13
- <fillField userInput =" Second Website " selector =" {{AdminStoresGridSection.websiteFilterTextField}}" stepKey =" fillSearchWebsiteField" />
16
+ <fillField userInput =" {{websiteName}} " selector =" {{AdminStoresGridSection.websiteFilterTextField}}" stepKey =" fillSearchWebsiteField" />
14
17
<click selector =" {{AdminStoresGridSection.searchButton}}" stepKey =" clickSearchButton" />
15
- <see userInput =" Second Website " selector =" {{AdminStoresGridSection.websiteNameInFirstRow}}" stepKey =" verifyThatCorrectWebsiteFound" />
18
+ <see userInput =" {{websiteName}} " selector =" {{AdminStoresGridSection.websiteNameInFirstRow}}" stepKey =" verifyThatCorrectWebsiteFound" />
16
19
<click selector =" {{AdminStoresGridSection.websiteNameInFirstRow}}" stepKey =" clickEditExistingStoreRow" />
17
20
<waitForPageLoad stepKey =" waitForStoreToLoad" />
18
21
<click selector =" {{AdminStoresMainActionsSection.deleteButton}}" stepKey =" clickDeleteWebsiteButtonOnEditWebsitePage" />
You can’t perform that action at this time.
0 commit comments