Skip to content

Commit 04146b6

Browse files
create new action group
1 parent 38bf16e commit 04146b6

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10+
<actionGroup name="AssertAdminIntegrationNameInFormActionGroup">
11+
<arguments>
12+
<argument name="name" type="string"/>
13+
</arguments>
14+
<seeInField userInput="{{name}}" selector="{{AdminNewIntegrationSection.name}}" stepKey="checkEnteredValueIsPreserved"/>
15+
</actionGroup>
16+
</actionGroups>

app/code/Magento/Integration/Test/Mftf/Test/AdminCreateIntegrationEntityWithDuplicatedNameTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
<argument name="message" value="The integration with name &quot;{{defaultIntegrationData.name}}&quot; exists."/>
5555
<argument value="error" name="messageType"/>
5656
</actionGroup>
57-
<actionGroup ref="AssertAdminIntegrationNameInFormActionGroup" stepKey="submitTheFormWithDuplicatedName">
58-
<seeInField stepKey="checkEnteredValueIsPreserved" selector="{{AdminNewIntegrationSection.name}}" userInput="Integration1"/>
57+
<actionGroup ref="AssertAdminIntegrationNameInFormActionGroup" stepKey="checkEnteredValueIsPreserved">
58+
<argument name="name" value="{{defaultIntegrationData.name}}"/>
5959
</actionGroup>
6060
</test>
6161
</tests>

0 commit comments

Comments
 (0)