File tree Expand file tree Collapse file tree 8 files changed +128
-0
lines changed
dev/tests/functional/tests/app/Magento/Store/Test/TestCase Expand file tree Collapse file tree 8 files changed +128
-0
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 =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" AdminAssertDashboardPageIsVisibleActionGroup" >
12
+ <seeInCurrentUrl url =" {{AdminDashboardPage.url}}" stepKey =" seeDashboardUrl" />
13
+ <see userInput =" Dashboard" selector =" {{AdminHeaderSection.pageTitle}}" stepKey =" seeDashboardTitle" />
14
+ </actionGroup >
15
+ </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
+
9
+ <entities xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd" >
11
+ <entity name =" StorefrontDisableAddStoreCodeToUrls" >
12
+ <!-- Magento default value -->
13
+ <data key =" path" >web/url/use_store</data >
14
+ <data key =" scope_id" >0</data >
15
+ <data key =" label" >No</data >
16
+ <data key =" value" >0</data >
17
+ </entity >
18
+ <entity name =" StorefrontEnableAddStoreCodeToUrls" >
19
+ <data key =" path" >web/url/use_store</data >
20
+ <data key =" scope_id" >0</data >
21
+ <data key =" label" >Yes</data >
22
+ <data key =" value" >1</data >
23
+ </entity >
24
+ </entities >
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
+ <tests xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/testSchema.xsd" >
11
+ <test name =" AdminUserLoginWithStoreCodeInUrlTest" >
12
+ <annotations >
13
+ <features value =" Backend" />
14
+ <title value =" Admin panel should be accessible with Add Store Code to URL setting enabled" />
15
+ <description value =" Admin panel should be accessible with Add Store Code to URL setting enabled" />
16
+ <group value =" backend" />
17
+ <group value =" mtf_migrated" />
18
+ </annotations >
19
+ <before >
20
+ <magentoCLI command =" config:set {{StorefrontEnableAddStoreCodeToUrls.path}} {{StorefrontEnableAddStoreCodeToUrls.value}}" stepKey =" addStoreCodeToUrlEnable" />
21
+ </before >
22
+ <after >
23
+ <magentoCLI command =" config:set {{StorefrontDisableAddStoreCodeToUrls.path}} {{StorefrontDisableAddStoreCodeToUrls.value}}" stepKey =" addStoreCodeToUrlDisable" />
24
+ </after >
25
+
26
+ <actionGroup ref =" LoginAsAdmin" stepKey =" loginAsAdmin" />
27
+ <actionGroup ref =" AdminAssertDashboardPageIsVisibleActionGroup" stepKey =" seeDashboardPage" />
28
+ </test >
29
+ </tests >
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
+ <actionGroup name =" StorefrontAssertStoreCodeInUrlActionGroup" >
11
+ <seeInCurrentUrl url =" {{StorefrontHomePage.url}}{{_defaultStore.code}}" stepKey =" seeStoreCodeInURL" />
12
+ </actionGroup >
13
+ </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
+
9
+ <tests xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/testSchema.xsd" >
11
+ <test name =" StorefrontAddStoreCodeInUrlTest" >
12
+ <annotations >
13
+ <features value =" Backend" />
14
+ <title value =" Store code should be added to storefront URL if the corresponding configuration is enabled" />
15
+ <description value =" Store code should be added to storefront URL if the corresponding configuration is enabled" />
16
+ <group value =" store" />
17
+ <group value =" mtf_migrated" />
18
+ </annotations >
19
+ <before >
20
+ <magentoCLI command =" config:set {{StorefrontEnableAddStoreCodeToUrls.path}} {{StorefrontEnableAddStoreCodeToUrls.value}}" stepKey =" addStoreCodeToUrlEnable" />
21
+ </before >
22
+ <after >
23
+ <magentoCLI command =" config:set {{StorefrontDisableAddStoreCodeToUrls.path}} {{StorefrontDisableAddStoreCodeToUrls.value}}" stepKey =" addStoreCodeToUrlDisable" />
24
+ </after >
25
+
26
+ <actionGroup ref =" StorefrontClickOnHeaderLogoActionGroup" stepKey =" clickOnStorefrontHeaderLogo" />
27
+ <actionGroup ref =" StorefrontAssertStoreCodeInUrlActionGroup" stepKey =" seeStoreCodeInUrl" />
28
+ </test >
29
+ </tests >
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
+ <actionGroup name =" StorefrontClickOnHeaderLogoActionGroup" >
11
+ <amOnPage url =" {{StorefrontHomePage.url}}" stepKey =" gotToHomePage" />
12
+ <waitForPageLoad stepKey =" waitForHomePageLoaded1" />
13
+ <click selector =" {{StorefrontHeaderSection.logoLink}}" stepKey =" clickOnLogo" />
14
+ <waitForPageLoad stepKey =" waitForHomePageLoaded2" />
15
+ </actionGroup >
16
+ </actionGroups >
Original file line number Diff line number Diff line change 9
9
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
10
10
<section name =" StorefrontHeaderSection" >
11
11
<element name =" welcomeMessage" type =" text" selector =" .greet.welcome" />
12
+ <element name =" logoLink" type =" button" selector =" .header .logo" />
12
13
</section >
13
14
</sections >
Original file line number Diff line number Diff line change 11
11
<data name =" configData" xsi : type =" string" >add_store_code_to_urls</data >
12
12
<data name =" user/dataset" xsi : type =" string" >default</data >
13
13
<data name =" storeCode" xsi : type =" string" >default</data >
14
+ <data name =" tag" xsi : type =" string" >mftf_migrated:yes</data >
14
15
<constraint name =" Magento\User\Test\Constraint\AssertUserSuccessLogin" />
15
16
<constraint name =" Magento\Store\Test\Constraint\AssertStoreCodeInUrl" />
16
17
</variation >
You can’t perform that action at this time.
0 commit comments