File tree Expand file tree Collapse file tree 2 files changed +27
-4
lines changed
app/code/Magento/Backend/Test/Mftf Expand file tree Collapse file tree 2 files changed +27
-4
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
+ <entities xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd" >
11
+ <entity name =" ChangedCookieDomainForMainWebsiteConfigData" >
12
+ <data key =" path" >web/cookie/cookie_domain</data >
13
+ <data key =" scope" >website</data >
14
+ <data key =" scope_code" >base</data >
15
+ <data key =" value" >testDomain.com</data >
16
+ </entity >
17
+ <entity name =" EmptyCookieDomainForMainWebsiteConfigData" >
18
+ <data key =" path" >web/cookie/cookie_domain</data >
19
+ <data key =" scope" >website</data >
20
+ <data key =" scope_code" >base</data >
21
+ <data key =" value" >''</data >
22
+ </entity >
23
+ </entities >
Original file line number Diff line number Diff line change 20
20
<group value =" backend" />
21
21
</annotations >
22
22
<before >
23
- <magentoCLI command =" config:set web/cookie/cookie_domain --scope=website --scope-code=base testDomain.com " stepKey =" changeDomainForMainWebsiteBeforeTestRun" />
24
- <magentoCLI command =" cache:flush" stepKey =" flushCacheBeforeTestRun" />
23
+ <magentoCLI command =" config:set {{ChangedCookieDomainForMainWebsiteConfigData.path}} --scope={{ChangedCookieDomainForMainWebsiteConfigData.scope}} --scope-code={{ChangedCookieDomainForMainWebsiteConfigData.scope_code}} {{ChangedCookieDomainForMainWebsiteConfigData.value}} " stepKey =" changeDomainForMainWebsiteBeforeTestRun" />
24
+ <magentoCLI command =" cache:flush config " stepKey =" flushCacheBeforeTestRun" />
25
25
</before >
26
26
<after >
27
- <magentoCLI command =" config:set web/cookie/cookie_domain --scope=website --scope-code=base '' " stepKey =" changeDomainForMainWebsiteAfterTestComplete" />
28
- <magentoCLI command =" cache:flush" stepKey =" flushCacheAfterTestComplete" />
27
+ <magentoCLI command =" config:set {{EmptyCookieDomainForMainWebsiteConfigData.path}} --scope={{EmptyCookieDomainForMainWebsiteConfigData.scope}} --scope-code={{EmptyCookieDomainForMainWebsiteConfigData.scope_code}} {{EmptyCookieDomainForMainWebsiteConfigData.value}} " stepKey =" changeDomainForMainWebsiteAfterTestComplete" />
28
+ <magentoCLI command =" cache:flush config " stepKey =" flushCacheAfterTestComplete" />
29
29
</after >
30
30
<actionGroup ref =" LoginAsAdmin" stepKey =" loginAsAdmin" />
31
31
<actionGroup ref =" AssertAdminDashboardPageIsVisibleActionGroup" stepKey =" seeDashboardPage" />
You can’t perform that action at this time.
0 commit comments