Skip to content

Commit e4a802e

Browse files
committed
Action Group adjustments
1 parent 568e757 commit e4a802e

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AdminFillProductVideoFieldActionGroup">
12+
<arguments>
13+
<argument name="input" type="string"/>
14+
<argument name="value" type="string"/>
15+
</arguments>
16+
17+
<fillField selector="{{input}}" userInput="{{value}}" stepKey="fillVideoField"/>
18+
</actionGroup>
19+
</actionGroups>
20+
21+
22+

app/code/Magento/ProductVideo/Test/Mftf/ActionGroup/AdminAssertVideoValidationErrorActionGroup.xml renamed to app/code/Magento/ProductVideo/Test/Mftf/ActionGroup/AssertAdminVideoValidationErrorActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11-
<actionGroup name="AdminAssertVideoValidationErrorActionGroup">
11+
<actionGroup name="AssertAdminVideoValidationErrorActionGroup">
1212
<arguments>
1313
<argument name="inputName" type="string"/>
1414
<argument name="errorMessage" type="string" defaultValue="This is a required field."/>

app/code/Magento/ProductVideo/Test/Mftf/Test/AdminValidateUrlOnGetVideoInformationTest.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@
3030
</actionGroup>
3131
<actionGroup ref="AdminOpenProductVideoModalActionGroup" stepKey="openAddProductVideoModal"/>
3232
<actionGroup ref="AdminGetVideoInformationActionGroup" stepKey="clickOnGetVideoInformation"/>
33-
<actionGroup ref="AdminAssertVideoValidationErrorActionGroup" stepKey="seeUrlValidationMessage">
33+
<actionGroup ref="AssertAdminVideoValidationErrorActionGroup" stepKey="seeUrlValidationMessage">
3434
<argument name="inputName" value="video_url"/>
3535
</actionGroup>
36-
<fillField selector="{{AdminProductNewVideoSection.videoUrlTextField}}"
37-
userInput="{{mftfTestProductVideo.videoUrl}}" stepKey="fillFieldVideoUrl"/>
36+
<actionGroup ref="AdminFillProductVideoFieldActionGroup" stepKey="fillVideoUrlField">
37+
<argument name="input" value="{{AdminProductNewVideoSection.videoUrlTextField}}"/>
38+
<argument name="value" value="{{mftfTestProductVideo.videoUrl}}"/>
39+
</actionGroup>
3840
<actionGroup ref="AdminGetVideoInformationActionGroup" stepKey="clickOnGetVideoInformation2"/>
3941
<actionGroup ref="AdminAssertVideoNoValidationErrorActionGroup" stepKey="dontSeeUrlValidationMessage">
4042
<argument name="inputName" value="video_url"/>

0 commit comments

Comments
 (0)