Skip to content

Commit a464b25

Browse files
committed
MQE-516: Duplicated $data.key$ references are not replaced correctly
- Verification Test Fixes
1 parent 730f063 commit a464b25

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dev/tests/verification/Resources/LocatorFunctionCest.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ class LocatorFunctionCest
3535
$I->click(Locator::find("'img'", ['title' => 'diagram']));
3636
$I->click(Locator::contains("string", "'Name'"));
3737
$I->click(Locator::contains("John", "'Name'"));
38-
$I->click(Locator::contains($data->getCreatedDataByName('key') . "", "'Name'"));
38+
$I->click(Locator::contains($data->getCreatedDataByName('key'), "'Name'"));
3939
$I->click(Locator::contains("string1", "string2"));
4040
$I->click(Locator::contains("John", "Doe"));
41-
$I->click(Locator::contains($data->getCreatedDataByName('key1') . "", "" . $data->getCreatedDataByName('key2')));
41+
$I->click(Locator::contains($data->getCreatedDataByName('key1'), $data->getCreatedDataByName('key2')));
4242
$I->click(Locator::contains("string1", "John"));
43-
$I->click(Locator::contains("string1", "" . $data->getCreatedDataByName('key1')));
44-
$I->click(Locator::contains("John", "" . $data->getCreatedDataByName('key1')));
43+
$I->click(Locator::contains("string1", $data->getCreatedDataByName('key1')));
44+
$I->click(Locator::contains("John", $data->getCreatedDataByName('key1')));
4545
}
4646
}

dev/tests/verification/Resources/PersistedReplacementCest.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ class PersistedReplacementCest
4848
$I->dragAndDrop("#" . $createdData->getCreatedDataByName('firstname'), $createdData->getCreatedDataByName('lastname'));
4949
$I->conditionalClick($createdData->getCreatedDataByName('lastname'), "#" . $createdData->getCreatedDataByName('firstname'), true);
5050
$I->amOnUrl($createdData->getCreatedDataByName('firstname') . ".html");
51-
$I->searchAndMultiSelectOption("#selector", [$createdData->getCreatedDataByName('firstname') . "", "" . $createdData->getCreatedDataByName('lastname')]);
51+
$I->searchAndMultiSelectOption("#selector", [$createdData->getCreatedDataByName('firstname'), $createdData->getCreatedDataByName('lastname')]);
5252
$I->fillField("#selector", "John " . $createdData->getCreatedDataByName('firstname') . " stringLiteral");
53-
$I->searchAndMultiSelectOption("#selector", [$createdData->getCreatedDataByName('firstname') . "", "John", "stringLiteral"]);
53+
$I->searchAndMultiSelectOption("#selector", [$createdData->getCreatedDataByName('firstname'), "John", "stringLiteral"]);
5454
}
5555
}

0 commit comments

Comments
 (0)