Skip to content

MQE-1078: Enable regex attribute to resolve data references #156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dev/tests/verification/Resources/DataReplacementTest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class DataReplacementTestCest
public function DataReplacementTest(AcceptanceTester $I)
{
$I->fillField("#selector", "StringBefore John StringAfter");
$I->seeCurrentUrlMatches("~\/John~i");
$I->fillField("#John", "input");
$I->dragAndDrop("#John", "Doe");
$I->conditionalClick("Doe", "#John", true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
xsi:noNamespaceSchemaLocation="../../../../../src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
<test name="DataReplacementTest">
<fillField stepKey="inputReplace" selector="#selector" userInput="StringBefore {{simpleData.firstname}} StringAfter"/>
<seeCurrentUrlMatches stepKey="seeInRegex" regex="~\/{{simpleData.firstname}}~i"/>
<fillField stepKey="selectorReplace" selector="#{{simpleData.firstname}}" userInput="input"/>
<dragAndDrop stepKey="selector12Replace" selector1="#{{simpleData.firstname}}" selector2="{{simpleData.lastname}}"/>
<conditionalClick stepKey="dependentSelectorReplace" dependentSelector="#{{simpleData.firstname}}" selector="{{simpleData.lastname}}" visible="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ class ActionObject
"y",
"expectedResult",
"actualResult",
"command"
"command",
"regex"
];
const SELECTOR_ENABLED_ATTRIBUTES = [
'selector',
Expand Down