|
18 | 18 | <group value="mtf_migrated"/>
|
19 | 19 | </annotations>
|
20 | 20 | <before>
|
21 |
| - <!-- Login As Admin --> |
22 |
| - <actionGroup ref="LoginAsAdmin" stepKey="LoginAsAdmin"/> |
23 |
| - <!-- Navigate To Integrations Page --> |
| 21 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
24 | 22 | <actionGroup ref="AdminNavigateMenuActionGroup" stepKey="navigateToIntegrationsPage">
|
25 | 23 | <argument name="menuUiId" value="{{AdminMenuSystem.dataUiId}}"/>
|
26 | 24 | <argument name="submenuUiId" value="{{AdminMenuSystemExtensionsIntegrations.dataUiId}}"/>
|
27 | 25 | </actionGroup>
|
28 |
| - <!-- Click the "Add New Integration" button --> |
29 | 26 | <actionGroup ref="AdminNavigateToCreateIntegrationPageActionGroup" stepKey="clickAddNewIntegrationButton"/>
|
30 |
| - <!-- Create New Integration --> |
31 | 27 | <actionGroup ref="AdminFillIntegrationFormActionGroup" stepKey="createIntegration">
|
32 | 28 | <argument name="integration" value="defaultIntegrationData"/>
|
33 | 29 | <argument name="password" value="{{_ENV.MAGENTO_ADMIN_PASSWORD}}"/>
|
34 | 30 | </actionGroup>
|
35 |
| - <!-- Click Save And Activate Button --> |
36 | 31 | <actionGroup ref="AdminIntegrationSaveAndActivateActionGroup" stepKey="clickSaveAndActivateButton"/>
|
37 | 32 | <actionGroup ref="AdminAllowResourcesAccessIntegrationActionGroup" stepKey="allowAccess"/>
|
38 | 33 | </before>
|
|
45 | 40 | <argument name="name" value="{{defaultIntegrationData.name}}"/>
|
46 | 41 | </actionGroup>
|
47 | 42 | <actionGroup ref="AdminDeleteIntegrationEntityActionGroup" stepKey="deleteCreatedIntegration"/>
|
48 |
| - <actionGroup ref="logout" stepKey="logout"/> |
| 43 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
49 | 44 | </after>
|
50 |
| - <!-- TEST BODY --> |
51 |
| - <grabValueFrom selector="{{AdminNewIntegrationSection.consumerKey}}" stepKey="grabConsumerKey"/> |
52 |
| - <grabValueFrom selector="{{AdminNewIntegrationSection.consumerSecret}}" stepKey="grabConsumerSecret"/> |
53 |
| - <grabValueFrom selector="{{AdminNewIntegrationSection.accessToken}}" stepKey="grabAccessToken"/> |
54 |
| - <grabValueFrom selector="{{AdminNewIntegrationSection.accessTokenSecret}}" stepKey="grabAccessTokenSecret"/> |
55 |
| - <actionGroup ref="AdminAllowResourcesAccessIntegrationActionGroup" stepKey="clickDoneButton"/> |
56 |
| - <actionGroup ref="AdminSearchIntegrationInGridActionGroup" stepKey="findCreatedIntegration"> |
57 |
| - <argument name="name" value="{{defaultIntegrationData.name}}"/> |
58 |
| - </actionGroup> |
59 |
| - <actionGroup ref="AdminIntegrationClickReauthoriseLinkOnGridActionGroup" stepKey="clickReauthoriseLink"/> |
60 |
| - <actionGroup ref="AdminAllowResourcesAccessIntegrationActionGroup" stepKey="clickReauthoriseButton"/> |
61 |
| - <grabValueFrom selector="{{AdminNewIntegrationSection.consumerKey}}" stepKey="grabAfterReauthorizeConsumerKey"/> |
62 |
| - <grabValueFrom selector="{{AdminNewIntegrationSection.consumerSecret}}" stepKey="grabAfterReauthorizeConsumerSecret"/> |
63 |
| - <grabValueFrom selector="{{AdminNewIntegrationSection.accessToken}}" stepKey="grabReauthorizedAccessToken"/> |
64 |
| - <grabValueFrom selector="{{AdminNewIntegrationSection.accessTokenSecret}}" stepKey="grabReauthorizedAccessTokenSecret"/> |
65 |
| - <actionGroup ref="AdminAllowResourcesAccessIntegrationActionGroup" stepKey="finishTheProcess"/> |
66 |
| - <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeSuccessMessage"> |
67 |
| - <argument name="message" value="The integration '{{defaultIntegrationData.name}}' has been re-authorized."/> |
68 |
| - </actionGroup> |
69 |
| - <actionGroup ref="AdminSearchIntegrationInGridActionGroup" stepKey="findReAuthorizedIntegration"> |
70 |
| - <argument name="name" value="{{defaultIntegrationData.name}}"/> |
71 |
| - </actionGroup> |
72 |
| - <actionGroup ref="AdminIntegrationOpenExistingEntityActionGroup" stepKey="openIntegrationEntity"/> |
73 |
| - <!-- Compare Tokens After Reauthorizing --> |
74 |
| - <assertEquals stepKey="assertConsumerKey" expected="($grabConsumerKey)" actual="$grabAfterReauthorizeConsumerKey" actualType="string"/> |
75 |
| - <assertEquals stepKey="assertConsumerSecret" expected="($grabConsumerSecret)" actual="$grabAfterReauthorizeConsumerSecret" actualType="string"/> |
76 |
| - <assertNotEquals stepKey="assertNotEqualsToken" expected="($grabAccessToken)" actual="$grabReauthorizedAccessToken" actualType="string"/> |
77 |
| - <assertNotEquals stepKey="assertNotEqualsTokenSecret" expected="($grabAccessTokenSecret)" actual="$grabReauthorizedAccessTokenSecret" actualType="string"/> |
| 45 | + |
| 46 | + <grabValueFrom selector="{{AdminNewIntegrationSection.consumerKey}}" stepKey="grabConsumerKey"/> |
| 47 | + <grabValueFrom selector="{{AdminNewIntegrationSection.consumerSecret}}" stepKey="grabConsumerSecret"/> |
| 48 | + <grabValueFrom selector="{{AdminNewIntegrationSection.accessToken}}" stepKey="grabAccessToken"/> |
| 49 | + <grabValueFrom selector="{{AdminNewIntegrationSection.accessTokenSecret}}" stepKey="grabAccessTokenSecret"/> |
| 50 | + <actionGroup ref="AdminAllowResourcesAccessIntegrationActionGroup" stepKey="clickDoneButton"/> |
| 51 | + <actionGroup ref="AdminSearchIntegrationInGridActionGroup" stepKey="findCreatedIntegration"> |
| 52 | + <argument name="name" value="{{defaultIntegrationData.name}}"/> |
| 53 | + </actionGroup> |
| 54 | + <actionGroup ref="AdminIntegrationClickReauthoriseLinkOnGridActionGroup" stepKey="clickReauthoriseLink"/> |
| 55 | + <actionGroup ref="AdminAllowResourcesAccessIntegrationActionGroup" stepKey="clickReauthoriseButton"/> |
| 56 | + <grabValueFrom selector="{{AdminNewIntegrationSection.consumerKey}}" stepKey="grabAfterReauthorizeConsumerKey"/> |
| 57 | + <grabValueFrom selector="{{AdminNewIntegrationSection.consumerSecret}}" stepKey="grabAfterReauthorizeConsumerSecret"/> |
| 58 | + <grabValueFrom selector="{{AdminNewIntegrationSection.accessToken}}" stepKey="grabReauthorizedAccessToken"/> |
| 59 | + <grabValueFrom selector="{{AdminNewIntegrationSection.accessTokenSecret}}" stepKey="grabReauthorizedAccessTokenSecret"/> |
| 60 | + <actionGroup ref="AdminAllowResourcesAccessIntegrationActionGroup" stepKey="finishTheProcess"/> |
| 61 | + <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeSuccessMessage"> |
| 62 | + <argument name="message" value="The integration '{{defaultIntegrationData.name}}' has been re-authorized."/> |
| 63 | + </actionGroup> |
| 64 | + <actionGroup ref="AdminSearchIntegrationInGridActionGroup" stepKey="findReAuthorizedIntegration"> |
| 65 | + <argument name="name" value="{{defaultIntegrationData.name}}"/> |
| 66 | + </actionGroup> |
| 67 | + <actionGroup ref="AdminIntegrationOpenExistingEntityActionGroup" stepKey="openIntegrationEntity"/> |
| 68 | + <assertEquals stepKey="assertConsumerKey" expected="($grabConsumerKey)" actual="$grabAfterReauthorizeConsumerKey" actualType="string"/> |
| 69 | + <assertEquals stepKey="assertConsumerSecret" expected="($grabConsumerSecret)" actual="$grabAfterReauthorizeConsumerSecret" actualType="string"/> |
| 70 | + <assertNotEquals stepKey="assertNotEqualsToken" expected="($grabAccessToken)" actual="$grabReauthorizedAccessToken" actualType="string"/> |
| 71 | + <assertNotEquals stepKey="assertNotEqualsTokenSecret" expected="($grabAccessTokenSecret)" actual="$grabReauthorizedAccessTokenSecret" actualType="string"/> |
78 | 72 | </test>
|
79 | 73 | </tests>
|
0 commit comments