File tree 4 files changed +54
-0
lines changed
4 files changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ namespace Magento\AcceptanceTest\_default\Backend;
3
+
4
+ use Magento\FunctionalTestingFramework\AcceptanceTester;
5
+ use Magento\FunctionalTestingFramework\DataGenerator\Handlers\CredentialStore;
6
+ use Magento\FunctionalTestingFramework\DataGenerator\Handlers\PersistedObjectHandler;
7
+ use \Codeception\Util\Locator;
8
+ use Yandex\Allure\Adapter\Annotation\Features;
9
+ use Yandex\Allure\Adapter\Annotation\Stories;
10
+ use Yandex\Allure\Adapter\Annotation\Title;
11
+ use Yandex\Allure\Adapter\Annotation\Description;
12
+ use Yandex\Allure\Adapter\Annotation\Parameter;
13
+ use Yandex\Allure\Adapter\Annotation\Severity;
14
+ use Yandex\Allure\Adapter\Model\SeverityLevel;
15
+ use Yandex\Allure\Adapter\Annotation\TestCaseId;
16
+
17
+ /**
18
+ */
19
+ class ActionGroupWithParameterizedElementWithHyphenCest
20
+ {
21
+ /**
22
+ * @Features({"TestModule"})
23
+ * @Parameter(name = "AcceptanceTester", value="$I")
24
+ * @param AcceptanceTester $I
25
+ * @return void
26
+ * @throws \Exception
27
+ */
28
+ public function ActionGroupWithParameterizedElementWithHyphen(AcceptanceTester $I)
29
+ {
30
+ $keyoneActionGroup = $I->executeJS("#element .full-width");
31
+ }
32
+ }
Original file line number Diff line number Diff line change 85
85
</arguments >
86
86
<seeInCurrentUrl url =" /{{persistedData.urlKey}}.html?___store={{xmlData.firstname}}" stepKey =" checkUrl" />
87
87
</actionGroup >
88
+ <actionGroup name =" SectionArgumentWithParameterizedSelector" >
89
+ <arguments >
90
+ <argument name =" section" defaultValue =" SampleSection" />
91
+ </arguments >
92
+ <executeJS function =" {{section.oneParamElement('full-width')}}" stepKey =" keyone" />
93
+ </actionGroup >
88
94
</actionGroups >
Original file line number Diff line number Diff line change 158
158
<argument name =" sameStepKeyAsArg" value =" arg1" />
159
159
</actionGroup >
160
160
</test >
161
+ <test name =" ActionGroupWithParameterizedElementWithHyphen" >
162
+ <actionGroup ref =" SectionArgumentWithParameterizedSelector" stepKey =" actionGroup" >
163
+ <argument name =" section" value =" SampleSection" />
164
+ </actionGroup >
165
+ </test >
161
166
</tests >
Original file line number Diff line number Diff line change @@ -195,4 +195,15 @@ public function testActionGroupWithSkipReadiness()
195
195
{
196
196
$ this ->generateAndCompareTest ('ActionGroupSkipReadiness ' );
197
197
}
198
+
199
+ /**
200
+ * Test an action group with an arg that resolves into section.element with a hyphen in the parameter
201
+ *
202
+ * @throws \Exception
203
+ * @throws \Magento\FunctionalTestingFramework\Exceptions\TestReferenceException
204
+ */
205
+ public function testActionGroupWithHyphen ()
206
+ {
207
+ $ this ->generateAndCompareTest ('ActionGroupWithParameterizedElementWithHyphen ' );
208
+ }
198
209
}
You can’t perform that action at this time.
0 commit comments