File tree Expand file tree Collapse file tree 2 files changed +22
-6
lines changed
User/Test/Mftf/ActionGroup Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 20
20
</annotations >
21
21
22
22
<before >
23
+ <!-- Deploy static content with United Kingdom locale-->
24
+ <magentoCLI command =" setup:static-content:deploy en_GB" stepKey =" deployStaticContentWithUnitedKingdomLocale" />
23
25
<createData entity =" _defaultCategory" stepKey =" createCategory" />
24
26
<createData entity =" SimpleProduct" stepKey =" createProduct" >
25
27
<requiredEntity createDataKey =" createCategory" />
26
28
</createData >
27
29
28
30
<!-- Create new User -->
29
31
<actionGroup ref =" AdminLoginActionGroup" stepKey =" adminLogin" />
30
- <actionGroup ref =" AdminCreateUserWithRoleActionGroup " stepKey =" createAdminUser" >
32
+ <actionGroup ref =" AdminCreateUserWithRoleAndLocaleActionGroup " stepKey =" createAdminUser" >
31
33
<argument name =" user" value =" activeAdmin" />
32
34
<argument name =" role" value =" roleDefaultAdministrator" />
35
+ <argument name =" interfaceLocale" value =" en_GB" />
33
36
</actionGroup >
34
37
</before >
35
38
<after >
86
89
<argument name =" password" value =" {{activeAdmin.password}}" />
87
90
</actionGroup >
88
91
89
- <!-- Set Admin "Interface Locale" to "English (United Kingdom)"-->
90
- <actionGroup ref =" SetAdminAccountActionGroup" stepKey =" setAdminInterfaceLocaleToFrance" >
91
- <argument name =" InterfaceLocaleByValue" value =" en_GB" />
92
- </actionGroup >
93
-
94
92
<!-- Open Product Index Page and filter the product -->
95
93
<actionGroup ref =" AdminOpenProductIndexPageActionGroup" stepKey =" navigateToProductIndex2" />
96
94
<actionGroup ref =" FilterProductGridByCustomDateRangeActionGroup" stepKey =" filterProductGridByCustomDateRange" >
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
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
9
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
10
+ <!-- Create new user with role and locale setting-->
11
+ <actionGroup name =" AdminCreateUserWithRoleAndLocaleActionGroup" extends =" AdminCreateUserWithRoleActionGroup" >
12
+ <arguments >
13
+ <argument name =" interfaceLocale" defaultValue =" en_US" type =" string" />
14
+ </arguments >
15
+
16
+ <selectOption selector =" {{AdminNewUserFormSection.interfaceLocale}}" userInput =" {{interfaceLocale}}" stepKey =" setInterfaceLocate" after =" confirmPassword" />
17
+ </actionGroup >
18
+ </actionGroups >
You can’t perform that action at this time.
0 commit comments