Skip to content

Commit 1937bcf

Browse files
committed
Add MFTF automated tests for the fix
1 parent 0f4b046 commit 1937bcf

File tree

3 files changed

+83
-0
lines changed

3 files changed

+83
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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="AssertNotEqualsAdminMessageCreateIntegrationEntityActionGroup">
12+
<arguments>
13+
<argument name="message" type="string" defaultValue="Integration not securesdfds"/>
14+
</arguments>
15+
<waitForElementVisible selector="{{AdminIntegrationsGridSection.gridName}}" stepKey="waitForMessage"/>
16+
<!--<see userInput="{{message}}" selector="{{AdminIntegrationsGridSection.gridName}}" stepKey="verifyMessage"/>-->
17+
<dontSee selector="{{AdminIntegrationsGridSection.gridName}}" userInput="{{message}}" stepKey="doNotSeeErrorMessage"/>
18+
</actionGroup>
19+
</actionGroups>

app/code/Magento/Integration/Test/Mftf/Section/AdminIntegrationsGridSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@
1818
<element name="rowByIndex" type="text" selector="tr[data-role='row']:nth-of-type({{var1}})" parameterized="true" timeout="30"/>
1919
<element name="edit" type="button" selector=".data-grid .edit"/>
2020
<element name="activate" type="button" selector="#integrationGrid_table>tbody>tr:nth-child(1)>td.col-activate>a"/>
21+
<element name="gridName" type="block" selector=".col-name" />
2122
</section>
2223
</sections>
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11+
<test name="AdminGridIntegrationNoIntegrationSecureWarningTest">
12+
<annotations>
13+
<features value="Integration"/>
14+
<stories value="Check if Callback URL and Identity link URL leave empty then no warning show for secure Integration"/>
15+
<title value="Check if Callback URL and Identity link URL leave empty then no warning show for secure Integration"/>
16+
<description value="Check if Callback URL and Identity link URL leave empty then no warning show for secure Integration"/>
17+
<severity value="MAJOR"/>
18+
<testCaseId value="MC-19889"/>
19+
<group value="integration"/>
20+
<group value="mtf_migrated"/>
21+
<group value="pr_exclude"/>
22+
<group value="cloud"/>
23+
</annotations>
24+
<before>
25+
<actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin"/>
26+
</before>
27+
<after>
28+
<actionGroup ref="AdminNavigateMenuActionGroup" stepKey="returnToIntegrationsPage">
29+
<argument name="menuUiId" value="{{AdminMenuSystem.dataUiId}}"/>
30+
<argument name="submenuUiId" value="{{AdminMenuSystemExtensionsIntegrations.dataUiId}}"/>
31+
</actionGroup>
32+
<actionGroup ref="AdminSearchIntegrationInGridActionGroup" stepKey="searchForIntegration">
33+
<argument name="name" value="{{defaultIntegrationData.name}}"/>
34+
</actionGroup>
35+
<actionGroup ref="AdminDeleteIntegrationEntityActionGroup" stepKey="deleteCreatedIntegration"/>
36+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
37+
</after>
38+
39+
<actionGroup ref="AdminNavigateMenuActionGroup" stepKey="navigateToIntegrationsPage">
40+
<argument name="menuUiId" value="{{AdminMenuSystem.dataUiId}}"/>
41+
<argument name="submenuUiId" value="{{AdminMenuSystemExtensionsIntegrations.dataUiId}}"/>
42+
</actionGroup>
43+
<actionGroup ref="AdminNavigateToCreateIntegrationPageActionGroup" stepKey="clickAddNewIntegrationButton"/>
44+
<actionGroup ref="AdminCreatesNewIntegrationActionGroup" stepKey="createNewIntegration">
45+
<argument name="name" value="{{defaultIntegrationData.name}}"/>
46+
<argument name="password" value="{{_CREDS.magento/MAGENTO_ADMIN_PASSWORD}}"/>
47+
</actionGroup>
48+
<actionGroup ref="AdminSubmitNewIntegrationFormActionGroup" stepKey="submitTheForm"/>
49+
50+
51+
<actionGroup ref="AdminNavigateMenuActionGroup" stepKey="returnToIntegrationsPage">
52+
<argument name="menuUiId" value="{{AdminMenuSystem.dataUiId}}"/>
53+
<argument name="submenuUiId" value="{{AdminMenuSystemExtensionsIntegrations.dataUiId}}"/>
54+
</actionGroup>
55+
<actionGroup ref="AdminSearchIntegrationInGridActionGroup" stepKey="searchForIntegration">
56+
<argument name="name" value="{{defaultIntegrationData.name}}"/>
57+
</actionGroup>
58+
59+
<actionGroup ref="AssertNotEqualsAdminMessageCreateIntegrationEntityActionGroup" stepKey="seeErrorMessage">
60+
<argument name="message" value="Integration not secure"/>
61+
</actionGroup>
62+
</test>
63+
</tests>

0 commit comments

Comments
 (0)