|
2 | 2 | "name": "nestedAppAuth", |
3 | 3 | "platforms": "*", |
4 | 4 | "version": ">=2.22.0", |
| 5 | + "cypressTopWindowReplacement": true, |
5 | 6 | "testCases": [ |
6 | 7 | { |
7 | 8 | "title": "nestedAppAuth isNAAChannelRecommended API Call - Success", |
|
28 | 29 | "ios": ">=6.0.0" |
29 | 30 | }, |
30 | 31 | "expectedTestAppValue": "NAA deeply nested auth is supported" |
| 32 | + }, |
| 33 | + { |
| 34 | + "title": "nestedAppAuth - Send NAA message to NAA bridge from parent window", |
| 35 | + "type": "callResponse", |
| 36 | + "boxSelector": "#box_sendMessageToNestedAppAuthBridge", |
| 37 | + "inputValue": { |
| 38 | + "messageType": "NestedAppAuthRequest", |
| 39 | + "method": "GetToken", |
| 40 | + "sendTime": 1732269811006, |
| 41 | + "clientLibrary": "MetaOS", |
| 42 | + "clientLibraryVersion": "1.0.0", |
| 43 | + "requestId": "684352c2-7ab7-4def-b7e1-56a386c02a0a", |
| 44 | + "tokenParams": { "correlationId": "39dc85fe-9054-11ed-a1eb-0242ac120002" } |
| 45 | + }, |
| 46 | + "expectedAlertValue": "nestedAppAuth.execute called with payload: ##JSON_INPUT_VALUE##, origin: https://localhost:4000/, isTrustedOrigin: true", |
| 47 | + "expectedTestAppValue": { |
| 48 | + "messageType": "NestedAppAuthResponse", |
| 49 | + "requestId": "684352c2-7ab7-4def-b7e1-56a386c02a0a", |
| 50 | + "success": true, |
| 51 | + "initContext": { |
| 52 | + "sdkName": "OfficeAuth", |
| 53 | + "sdkVersion": "16.0.18015.15000", |
| 54 | + "capabilities": { "queryAccount": false }, |
| 55 | + "accountContext": { |
| 56 | + "homeAccountId": "bb5r835b-0e7b", |
| 57 | + "environment": "login.windows.net", |
| 58 | + "tenantId": "2855cd1be" |
| 59 | + } |
| 60 | + } |
| 61 | + } |
| 62 | + }, |
| 63 | + { |
| 64 | + "title": "nestedAppAuth - Send NAA message to top window from parent window", |
| 65 | + "type": "callResponse", |
| 66 | + "boxSelector": "#box_sendMessageToTopWindow", |
| 67 | + "platformsExcluded": ["iOS"], |
| 68 | + "inputValue": { |
| 69 | + "id": "2", |
| 70 | + "func": "nestedAppAuth.execute", |
| 71 | + "args": [], |
| 72 | + "data": "{\"messageType\":\"NestedAppAuthRequest\",\"method\":\"GetToken\",\"sendTime\":1732269811006,\"clientLibrary\":\"MetaOS\",\"clientLibraryVersion\":\"1.0.0\",\"requestId\":\"684352c2-7ab7-4def-b7e1-56a386c02a0a\",\"tokenParams\":{\"correlationId\":\"39dc85fe-9054-11ed-a1eb-0242ac120002\"}}" |
| 73 | + }, |
| 74 | + "expectedAlertValue": "nestedAppAuth.execute called with payload: {\"messageType\":\"NestedAppAuthRequest\",\"method\":\"GetToken\",\"sendTime\":1732269811006,\"clientLibrary\":\"MetaOS\",\"clientLibraryVersion\":\"1.0.0\",\"requestId\":\"684352c2-7ab7-4def-b7e1-56a386c02a0a\",\"tokenParams\":{\"correlationId\":\"39dc85fe-9054-11ed-a1eb-0242ac120002\"}}, origin: https://localhost:4000/, isTrustedOrigin: true", |
| 75 | + "expectedTestAppValue": { |
| 76 | + "messageType": "NestdedAppAuthResponse", |
| 77 | + "requestId": "684352c2-7ab7-4def-b7e1-56a386c02a0a", |
| 78 | + "success": true, |
| 79 | + "initContext": { |
| 80 | + "sdkName": "OfficeAuth", |
| 81 | + "sdkVersion": "16.0.18015.15000", |
| 82 | + "capabilities": { "queryAccount": false }, |
| 83 | + "accountContext": { |
| 84 | + "homeAccountId": "bb5r835b-0e7b", |
| 85 | + "environment": "login.windows.net", |
| 86 | + "tenantId": "2855cd1be" |
| 87 | + } |
| 88 | + } |
| 89 | + } |
31 | 90 | } |
32 | 91 | ] |
33 | 92 | } |
0 commit comments