|
15 | 15 | <title value="Lock admin user when creating new integration"/>
|
16 | 16 | <description value="Runs Lock admin user when creating new integration test."/>
|
17 | 17 | <severity value="MAJOR"/>
|
| 18 | + <testCaseId value="MC-14382" /> |
18 | 19 | <group value="security"/>
|
19 | 20 | <group value="mtf_migrated"/>
|
20 | 21 | </annotations>
|
|
30 | 31 | <actionGroup ref="AdminOpenNewIntegrationPageActionGroup" stepKey="openNewIntegrationPage"/>
|
31 | 32 | <!-- Perform add new admin user 6 specified number of times.
|
32 | 33 | "The password entered for the current user is invalid. Verify the password and try again." appears after each attempt.-->
|
33 |
| - <actionGroup ref="AdminFillIntegrationRequiredFieldsActionGroup" stepKey="fillFieldFirstAttempt"> |
| 34 | + <actionGroup ref="AdminFillIntegrationFormActionGroup" stepKey="fillFieldFirstAttempt"> |
| 35 | + <argument name="integration" value="defaultIntegrationData" /> |
34 | 36 | <argument name="currentAdminPassword" value="{{_ENV.MAGENTO_ADMIN_PASSWORD}}INVALID" />
|
35 | 37 | </actionGroup>
|
36 |
| - <actionGroup ref="AdminSaveIntegrationActionGroup" stepKey="saveIntegrationFirstAttempt"/> |
37 |
| - <actionGroup ref="AssertMessageOnAdminActionGroup" stepKey="checkFirstSaveIntegrationError"/> |
| 38 | + <actionGroup ref="AdminClickSaveButtonIntegrationFormActionGroup" stepKey="saveIntegrationFirstAttempt"/> |
| 39 | + <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="checkFirstSaveIntegrationError"> |
| 40 | + <argument name="message" value="The password entered for the current user is invalid. Verify the password and try again." /> |
| 41 | + <argument name="messageType" value="error" /> |
| 42 | + </actionGroup> |
38 | 43 |
|
39 |
| - <actionGroup ref="AdminFillIntegrationRequiredFieldsActionGroup" stepKey="fillFieldSecondAttempt"> |
| 44 | + <actionGroup ref="AdminFillIntegrationFormActionGroup" stepKey="fillFieldSecondAttempt"> |
| 45 | + <argument name="integration" value="defaultIntegrationData" /> |
40 | 46 | <argument name="currentAdminPassword" value="{{_ENV.MAGENTO_ADMIN_PASSWORD}}INVALID" />
|
41 | 47 | </actionGroup>
|
42 |
| - <actionGroup ref="AdminSaveIntegrationActionGroup" stepKey="saveIntegrationSecondAttempt"/> |
43 |
| - <actionGroup ref="AssertMessageOnAdminActionGroup" stepKey="checkSecondSaveIntegrationError"/> |
| 48 | + <actionGroup ref="AdminClickSaveButtonIntegrationFormActionGroup" stepKey="saveIntegrationSecondAttempt"/> |
| 49 | + <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="checkSecondSaveIntegrationError"> |
| 50 | + <argument name="message" value="The password entered for the current user is invalid. Verify the password and try again." /> |
| 51 | + <argument name="messageType" value="error" /> |
| 52 | + </actionGroup> |
44 | 53 |
|
45 |
| - <actionGroup ref="AdminFillIntegrationRequiredFieldsActionGroup" stepKey="fillFieldThirdAttempt"> |
| 54 | + <actionGroup ref="AdminFillIntegrationFormActionGroup" stepKey="fillFieldThirdAttempt"> |
| 55 | + <argument name="integration" value="defaultIntegrationData" /> |
46 | 56 | <argument name="currentAdminPassword" value="{{_ENV.MAGENTO_ADMIN_PASSWORD}}INVALID" />
|
47 | 57 | </actionGroup>
|
48 |
| - <actionGroup ref="AdminSaveIntegrationActionGroup" stepKey="saveIntegrationThirdAttempt"/> |
49 |
| - <actionGroup ref="AssertMessageOnAdminActionGroup" stepKey="checkThirdSaveIntegrationError"/> |
| 58 | + <actionGroup ref="AdminClickSaveButtonIntegrationFormActionGroup" stepKey="saveIntegrationThirdAttempt"/> |
| 59 | + <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="checkThirdSaveIntegrationError"> |
| 60 | + <argument name="message" value="The password entered for the current user is invalid. Verify the password and try again." /> |
| 61 | + <argument name="messageType" value="error" /> |
| 62 | + </actionGroup> |
50 | 63 |
|
51 |
| - <actionGroup ref="AdminFillIntegrationRequiredFieldsActionGroup" stepKey="fillFieldFourthAttempt"> |
| 64 | + <actionGroup ref="AdminFillIntegrationFormActionGroup" stepKey="fillFieldFourthAttempt"> |
| 65 | + <argument name="integration" value="defaultIntegrationData" /> |
52 | 66 | <argument name="currentAdminPassword" value="{{_ENV.MAGENTO_ADMIN_PASSWORD}}INVALID" />
|
53 | 67 | </actionGroup>
|
54 |
| - <actionGroup ref="AdminSaveIntegrationActionGroup" stepKey="saveIntegrationFourthAttempt"/> |
55 |
| - <actionGroup ref="AssertMessageOnAdminActionGroup" stepKey="checkFourthSaveIntegrationError"/> |
| 68 | + <actionGroup ref="AdminClickSaveButtonIntegrationFormActionGroup" stepKey="saveIntegrationFourthAttempt"/> |
| 69 | + <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="checkFourthSaveIntegrationError"> |
| 70 | + <argument name="message" value="The password entered for the current user is invalid. Verify the password and try again." /> |
| 71 | + <argument name="messageType" value="error" /> |
| 72 | + </actionGroup> |
56 | 73 |
|
57 |
| - <actionGroup ref="AdminFillIntegrationRequiredFieldsActionGroup" stepKey="fillFieldFifthAttempt"> |
| 74 | + <actionGroup ref="AdminFillIntegrationFormActionGroup" stepKey="fillFieldFifthAttempt"> |
| 75 | + <argument name="integration" value="defaultIntegrationData" /> |
58 | 76 | <argument name="currentAdminPassword" value="{{_ENV.MAGENTO_ADMIN_PASSWORD}}INVALID" />
|
59 | 77 | </actionGroup>
|
60 |
| - <actionGroup ref="AdminSaveIntegrationActionGroup" stepKey="saveIntegrationFifthAttempt"/> |
61 |
| - <actionGroup ref="AssertMessageOnAdminActionGroup" stepKey="checkFifthSaveIntegrationError"/> |
| 78 | + <actionGroup ref="AdminClickSaveButtonIntegrationFormActionGroup" stepKey="saveIntegrationFifthAttempt"/> |
| 79 | + <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="checkFifthSaveIntegrationError"> |
| 80 | + <argument name="message" value="The password entered for the current user is invalid. Verify the password and try again." /> |
| 81 | + <argument name="messageType" value="error" /> |
| 82 | + </actionGroup> |
62 | 83 |
|
63 | 84 | <!-- Last invalid current password save integration attempt and check logout error -->
|
64 |
| - <actionGroup ref="AdminFillIntegrationRequiredFieldsActionGroup" stepKey="fillFieldLastAttempt"> |
| 85 | + <actionGroup ref="AdminFillIntegrationFormActionGroup" stepKey="fillFieldLastAttempt"> |
| 86 | + <argument name="integration" value="defaultIntegrationData" /> |
65 | 87 | <argument name="currentAdminPassword" value="{{_ENV.MAGENTO_ADMIN_PASSWORD}}INVALID" />
|
66 | 88 | </actionGroup>
|
67 |
| - <actionGroup ref="AdminSaveIntegrationActionGroup" stepKey="saveIntegrationLastAttempt"/> |
68 |
| - <actionGroup ref="AssertAdminLoginErrorMessageActionGroup" stepKey="checkFifthError"> |
| 89 | + <actionGroup ref="AdminClickSaveButtonIntegrationFormActionGroup" stepKey="saveIntegrationLastAttempt"/> |
| 90 | + <actionGroup ref="AssertMessageOnAdminLoginActionGroup" stepKey="checkFifthError"> |
69 | 91 | <argument name="message" value="Your account is temporarily disabled. Please try again later."/>
|
70 | 92 | </actionGroup>
|
71 | 93 |
|
72 | 94 | <!-- Try to login as admin and check error -->
|
73 | 95 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsLockedAdmin"/>
|
74 |
| - <actionGroup ref="AssertAdminLoginErrorMessageActionGroup" stepKey="checkLoginError"/> |
| 96 | + <actionGroup ref="AssertMessageOnAdminLoginActionGroup" stepKey="checkLoginError" /> |
75 | 97 | </test>
|
76 | 98 | </tests>
|
0 commit comments