Skip to content

Commit 7094a49

Browse files
committed
MQE-1679: dontSeeInPageSource BIC schema
- allow schema to use either attribute and have testGenerator remap attributes
1 parent b6c1e8a commit 7094a49

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Magento/FunctionalTestingFramework/Test/etc/Actions/dontSeeActions.xsd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@
172172
</xs:annotation>
173173
<xs:simpleContent>
174174
<xs:extension base="xs:string">
175-
<xs:attribute ref="html" use="required"/>
175+
<xs:attribute ref="html"/>
176+
<xs:attribute ref="userInput"/>
176177
<xs:attributeGroup ref="commonActionAttributes"/>
177178
</xs:extension>
178179
</xs:simpleContent>

src/Magento/FunctionalTestingFramework/Util/TestGenerator.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,6 +1174,10 @@ public function generateStepsPhp($actionObjects, $generationScope = TestGenerato
11741174
case "dontSeeInPageSource":
11751175
case "seeInSource":
11761176
case "dontSeeInSource":
1177+
//TODO: Deprecate allowed usage of userInput in dontSeeInPageSource
1178+
if ($html === null && $input !== null) {
1179+
$html = $input;
1180+
}
11771181
$testSteps .= $this->wrapFunctionCall($actor, $actionObject, $html);
11781182
break;
11791183
case "conditionalClick":

0 commit comments

Comments
 (0)