Skip to content

Commit febae80

Browse files
committed
MQE-541: deprecated 'mergeKey' for test schema.
1 parent 110c3a5 commit febae80

File tree

8 files changed

+146
-341
lines changed

8 files changed

+146
-341
lines changed

dev/tests/verification/Resources/MergeFunctionalCest.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ class MergeFunctionalCest
5555
$I->searchAndMultiSelectOption("#foo", ["Jane", "Dane"]);
5656
$I->see("#element .Jane");
5757
$I->click("#step10MergedInResult");
58-
$I->click("#step11MergedInResult");
59-
$I->click("#step12MergedInResult");
6058
}
6159

6260
/**

dev/tests/verification/TestModule/Cest/MergeBaseFunctionalCest.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
<fillField stepKey="step5" selector="#password" userInput="step5"/>
2929
<click stepKey="step6" selector=".step6"/>
3030
<click stepKey="step10" selector="#step10ShouldNotInResult"/>
31-
<click mergeKey="step11" selector="#step11ShouldNotInResult"/>
32-
<click stepKey="step12" selector="#step12ShouldNotInResult"/>
3331
</test>
3432
<test name="MergedReferencesTest">
3533
<fillField stepKey="fillField1" selector="{{SampleSection.mergeElement}}" userInput="{{DefaultPerson.mergedField}}"/>

dev/tests/verification/TestModule/Cest/MergeInFunctionalCest.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
<click stepKey="step6" remove="true"/>
2626
<click stepKey="step6Merge" selector="#step6Merged" after="step5"/>
2727
<click stepKey="step10" selector="#step10MergedInResult"/>
28-
<click mergeKey="step11" selector="#step11MergedInResult"/>
29-
<click mergeKey="step12" selector="#step12MergedInResult"/>
3028
<actionGroup ref="FunctionalActionGroupWithData" stepKey="step8Merge" after="step7Merge"/>
3129
</test>
3230
</cest>

src/Magento/FunctionalTestingFramework/Config/Dom.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
namespace Magento\FunctionalTestingFramework\Config;
88

9-
use Magento\FunctionalTestingFramework\Util\GlobalConstants;
10-
119
/**
1210
* Magento configuration XML DOM utility
1311
*/
@@ -224,14 +222,6 @@ protected function getNodePathByParent(\DOMElement $node, $parentPath)
224222
if ($value = $node->getAttribute($idAttributeValue)) {
225223
$path .= "[@{$idAttributeValue}='{$value}']";
226224
break;
227-
// TODO Remove the following elseif block once the 'mergeKey' attribute has been fully deprecated.
228-
} elseif (empty($value) && $idAttributeValue === GlobalConstants::TEST_ID_ATTRIBUTE) {
229-
print "use of the 'mergeKey' attribute will be deprecated in the next release.\n";
230-
$idAttributeValue = GlobalConstants::DEPRECATED_TEST_ID_ATTRIBUTE;
231-
if ($value = $node->getAttribute($idAttributeValue)) {
232-
$path .= "[@{$idAttributeValue}='{$value}']";
233-
break;
234-
}
235225
}
236226
}
237227
}

src/Magento/FunctionalTestingFramework/Test/Config/Converter/Dom/Flat.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
use Magento\FunctionalTestingFramework\Config\ConverterInterface;
1010
use Magento\FunctionalTestingFramework\Config\Dom\ArrayNodeConfig;
11-
use Magento\FunctionalTestingFramework\Util\GlobalConstants;
1211

1312
/**
1413
* Universal converter of any XML data to an array representation with no data loss
@@ -86,14 +85,6 @@ public function convertXml(\DOMNode $source, $basePath = '')
8685
}
8786

8887
$nodeData = $this->convertXml($node, $nodePath);
89-
90-
// TODO Remove the following if block once the 'mergeKey' attribute has been fully deprecated.
91-
if (!isset($nodeData[GlobalConstants::TEST_ID_ATTRIBUTE])
92-
&& isset($nodeData[GlobalConstants::DEPRECATED_TEST_ID_ATTRIBUTE])) {
93-
$nodeData[GlobalConstants::TEST_ID_ATTRIBUTE] =
94-
$nodeData[GlobalConstants::DEPRECATED_TEST_ID_ATTRIBUTE];
95-
unset($nodeData[GlobalConstants::DEPRECATED_TEST_ID_ATTRIBUTE]);
96-
}
9788
if ($isArrayNode) {
9889
if ($isNumericArrayNode) {
9990
$value[$nodeName][] = $nodeData;

src/Magento/FunctionalTestingFramework/Test/Util/ActionObjectExtractor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function extractActions($testActions)
4444
$actions = [];
4545

4646
foreach ($testActions as $actionName => $actionData) {
47-
$mergeKey = $actionData[self::TEST_STEP_MERGE_KEY];
47+
$stepKey = $actionData[self::TEST_STEP_MERGE_KEY];
4848
if ($actionData[self::NODE_NAME] === TestEntityExtractor::TEST_STEP_ENTITY_CREATION) {
4949
$actionData = $this->stripDataFields($actionData);
5050
}
@@ -79,7 +79,7 @@ public function extractActions($testActions)
7979
}*/
8080

8181
$actions[] = new ActionObject(
82-
$mergeKey,
82+
$stepKey,
8383
$actionData[self::NODE_NAME],
8484
$actionAttributes,
8585
$linkedAction,

src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd

Lines changed: 144 additions & 286 deletions
Large diffs are not rendered by default.

src/Magento/FunctionalTestingFramework/Util/GlobalConstants.php

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)