Skip to content

Commit 84507a3

Browse files
committed
MC-4905: Convert CreateCustomUrlRewriteEntityTest to MFTF
1 parent 628ee27 commit 84507a3

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
11+
<section name="AdminUrlRewriteEditSection">
12+
<element name="createCustomUrlRewrite" type="select" selector="//select[@id='entity-type-selector']" />
13+
<element name="createCustomUrlRewriteValue" type="text" selector="//select[@id='entity-type-selector']/option[contains(.,'{{var}}')]" parameterized="true"/>
14+
<element name="store" type="select" selector="//select[@id='store_id']"/>
15+
<element name="storeValue" type="select" selector="//select[@id='store_id']//option[contains(., '{{var}}')]" parameterized="true" />
16+
<element name="requestPath" type="input" selector="//input[@id='request_path']"/>
17+
<element name="targetPath" type="input" selector="//input[@id='target_path']"/>
18+
<element name="redirectType" type="select" selector="//select[@id='redirect_type']"/>
19+
<element name="redirectTypeValue" type="select" selector="//select[@id='redirect_type']//option[contains(., '{{Var}}')]" parameterized="true"/>
20+
<element name="description" type="input" selector="#description"/>
21+
<element name="categoryInTree" type="text" selector="//li[contains(@class,'active-category jstree-open')]/a[contains(., '{{var}}')]" parameterized="true"/>
22+
<element name="saveButton" type="button" selector="#save" timeout="30"/>
23+
<element name="deleteButton" type="button" selector="#delete" timeout="30"/>
24+
<element name="okButton" type="button" selector="//button[@class='action-primary action-accept']" timeout="30"/>
25+
</section>
26+
</sections>

0 commit comments

Comments
 (0)