forked from magento/magento2-functional-testing-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExecuteJsTest.xml
18 lines (17 loc) · 902 Bytes
/
ExecuteJsTest.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
<test name="ExecuteJsEscapingTest">
<executeJS function="return $javascriptVariable" stepKey="javaVariableEscape"/>
<executeJS function="return {$doNotEscape}" stepKey="mftfVariableNotEscaped"/>
<executeJS function="return $persisted.data$" stepKey="persistedDataNotEscaped"/>
<executeJS function="return $$persisted.data$$" stepKey="hookPersistedDataNotEscaped"/>
<executeJS function="document.querySelector('entity option[value=$$productAttribute.attribute_code$$]').setAttribute('selected', 'selected')" stepKey="addNewAttributeForRule"/>
</test>
</tests>