|
35 | 35 | <!-- Click Save And Activate Button -->
|
36 | 36 | <actionGroup ref="AdminIntegrationSaveAndActivateActionGroup" stepKey="clickSaveAndActivateButton"/>
|
37 | 37 | <actionGroup ref="AdminAllowResourcesAccessIntegrationActionGroup" stepKey="allowAccess"/>
|
38 |
| - <actionGroup ref="AdminAllowResourcesAccessIntegrationActionGroup" stepKey="clickDoneButton"/> |
39 | 38 | </before>
|
40 | 39 | <after>
|
41 | 40 | <actionGroup ref="AdminNavigateMenuActionGroup" stepKey="returnToIntegrationsPage">
|
|
48 | 47 | <actionGroup ref="AdminDeleteIntegrationEntityActionGroup" stepKey="deleteCreatedIntegration"/>
|
49 | 48 | <actionGroup ref="logout" stepKey="logout"/>
|
50 | 49 | </after>
|
51 |
| - |
52 | 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"/> |
53 | 56 | <actionGroup ref="AdminSearchIntegrationInGridActionGroup" stepKey="findCreatedIntegration">
|
54 | 57 | <argument name="name" value="{{defaultIntegrationData.name}}"/>
|
55 | 58 | </actionGroup>
|
56 | 59 | <actionGroup ref="AdminIntegrationClickReauthoriseLinkOnGridActionGroup" stepKey="clickReauthoriseLink"/>
|
57 | 60 | <actionGroup ref="AdminAllowResourcesAccessIntegrationActionGroup" stepKey="clickReauthoriseButton"/>
|
58 |
| - <grabValueFrom selector="{{AdminNewIntegrationSection.consumerKey}}" stepKey="grabConsumerKey"/> |
59 |
| - <grabValueFrom selector="{{AdminNewIntegrationSection.consumerSecret}}" stepKey="grabConsumerSecret"/> |
60 |
| - <grabValueFrom selector="{{AdminNewIntegrationSection.accessToken}}" stepKey="grabAccessToken"/> |
61 |
| - <grabValueFrom selector="{{AdminNewIntegrationSection.accessTokenSecret}}" stepKey="grabAccessTokenSecret"/> |
| 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"/> |
62 | 65 | <actionGroup ref="AdminAllowResourcesAccessIntegrationActionGroup" stepKey="finishTheProcess"/>
|
63 | 66 | <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeSuccessMessage">
|
64 | 67 | <argument name="message" value="The integration '{{defaultIntegrationData.name}}' has been re-authorized."/>
|
|
67 | 70 | <argument name="name" value="{{defaultIntegrationData.name}}"/>
|
68 | 71 | </actionGroup>
|
69 | 72 | <actionGroup ref="AdminIntegrationOpenExistingEntityActionGroup" stepKey="openIntegrationEntity"/>
|
70 |
| - <actionGroup ref="AssertAdminIntegrationTokensAfterReauthoriseActionGroup" stepKey="assertTokens"> |
71 |
| - <argument name="consumerKey" value="{$grabConsumerKey}"/> |
72 |
| - <argument name="consumerSecret" value="{$grabConsumerSecret}"/> |
73 |
| - <argument name="accessToken" value="{$grabAccessToken}"/> |
74 |
| - <argument name="accessTokenSecret" value="{$grabAccessTokenSecret}"/> |
75 |
| - </actionGroup> |
| 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"/> |
76 | 78 | </test>
|
77 | 79 | </tests>
|
0 commit comments