@@ -25,18 +25,19 @@ class ActionGroupWithDataOverrideTestCest
25
25
*/
26
26
public function _before(AcceptanceTester $I)
27
27
{
28
- $I->amGoingTo(" create entity that has the stepKey: createPersonParam ");
28
+ $I->comment("[createPersonParam] create 'ReplacementPerson' entity ");
29
29
PersistedObjectHandler::getInstance()->createEntity(
30
30
"createPersonParam",
31
31
"hook",
32
32
"ReplacementPerson",
33
33
[],
34
34
null
35
35
);
36
- $I->comment("Entering Action Group FunctionalActionGroup (beforeGroup)");
37
- $I->fillField("#foo", "myData1");
38
- $I->fillField("#bar", "myData2");
39
- $I->comment("Exiting Action Group FunctionalActionGroup (beforeGroup)");
36
+
37
+ $I->comment("Entering Action Group [beforeGroup] FunctionalActionGroup");
38
+ $I->fillField("#foo", "myData1"); // stepKey: fillField1BeforeGroup
39
+ $I->fillField("#bar", "myData2"); // stepKey: fillField2BeforeGroup
40
+ $I->comment("Exiting Action Group [beforeGroup] FunctionalActionGroup");
40
41
}
41
42
42
43
/**
@@ -45,10 +46,10 @@ class ActionGroupWithDataOverrideTestCest
45
46
*/
46
47
public function _after(AcceptanceTester $I)
47
48
{
48
- $I->comment("Entering Action Group FunctionalActionGroup ( afterGroup) ");
49
- $I->fillField("#foo", "myData1");
50
- $I->fillField("#bar", "myData2");
51
- $I->comment("Exiting Action Group FunctionalActionGroup ( afterGroup) ");
49
+ $I->comment("Entering Action Group [ afterGroup] FunctionalActionGroup ");
50
+ $I->fillField("#foo", "myData1"); // stepKey: fillField1AfterGroup
51
+ $I->fillField("#bar", "myData2"); // stepKey: fillField2AfterGroup
52
+ $I->comment("Exiting Action Group [ afterGroup] FunctionalActionGroup ");
52
53
}
53
54
54
55
/**
@@ -57,7 +58,7 @@ class ActionGroupWithDataOverrideTestCest
57
58
*/
58
59
public function _failed(AcceptanceTester $I)
59
60
{
60
- $I->saveScreenshot();
61
+ $I->saveScreenshot(); // stepKey: saveScreenshot
61
62
}
62
63
63
64
/**
@@ -71,14 +72,14 @@ class ActionGroupWithDataOverrideTestCest
71
72
*/
72
73
public function ActionGroupWithDataOverrideTest(AcceptanceTester $I)
73
74
{
74
- $I->amOnPage("/someUrl");
75
- $I->comment("Entering Action Group FunctionalActionGroupWithData ( actionGroupWithDataOverride1) ");
76
- $I->amOnPage("/John/Doe.html");
77
- $I->fillField("#foo", "John");
78
- $I->fillField("#bar", "Doe");
79
- $I->searchAndMultiSelectOption("#foo", ["John", "Doe"]);
80
- $I->see("#element .John");
81
- $I->comment("Exiting Action Group FunctionalActionGroupWithData ( actionGroupWithDataOverride1) ");
82
- $I->click("loginButton");
75
+ $I->amOnPage("/someUrl"); // stepKey: step1
76
+ $I->comment("Entering Action Group [ actionGroupWithDataOverride1] FunctionalActionGroupWithData ");
77
+ $I->amOnPage("/John/Doe.html"); // stepKey: amOnPage1ActionGroupWithDataOverride1
78
+ $I->fillField("#foo", "John"); // stepKey: fillField1ActionGroupWithDataOverride1
79
+ $I->fillField("#bar", "Doe"); // stepKey: fillField2ActionGroupWithDataOverride1
80
+ $I->searchAndMultiSelectOption("#foo", ["John", "Doe"]); // stepKey: multi1ActionGroupWithDataOverride1
81
+ $I->see("#element .John"); // stepKey: see1ActionGroupWithDataOverride1
82
+ $I->comment("Exiting Action Group [ actionGroupWithDataOverride1] FunctionalActionGroupWithData ");
83
+ $I->click("loginButton"); // stepKey: step6
83
84
}
84
85
}
0 commit comments