|
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", |
8 | 9 | "type": "callResponse", |
9 | 10 | "boxSelector": "#box_checkIsNAAChannelRecommended", |
10 | 11 | "expectedTestAppValue": "NAA channel is recommended" |
| 12 | + }, |
| 13 | + { |
| 14 | + "title": "nestedAppAuth - Send NAA message to NAA bridge from parent window", |
| 15 | + "type": "callResponse", |
| 16 | + "boxSelector": "#box_sendMessageToNestedAppAuthBridge", |
| 17 | + "inputValue": { |
| 18 | + "messageType": "NestedAppAuthRequest", |
| 19 | + "method": "GetToken", |
| 20 | + "sendTime": 1732269811006, |
| 21 | + "clientLibrary": "MetaOS", |
| 22 | + "clientLibraryVersion": "1.0.0", |
| 23 | + "requestId": "684352c2-7ab7-4def-b7e1-56a386c02a0a", |
| 24 | + "tokenParams": { "correlationId": "39dc85fe-9054-11ed-a1eb-0242ac120002" } |
| 25 | + }, |
| 26 | + "expectedAlertValue": "nestedAppAuth.execute called with payload: ##JSON_INPUT_VALUE##, origin: https://localhost:4000/, isTrustedOrigin: true", |
| 27 | + "expectedTestAppValue": { |
| 28 | + "messageType": "NestedAppAuthResponse", |
| 29 | + "requestId": "684352c2-7ab7-4def-b7e1-56a386c02a0a", |
| 30 | + "success": true, |
| 31 | + "initContext": { |
| 32 | + "sdkName": "OfficeAuth", |
| 33 | + "sdkVersion": "16.0.18015.15000", |
| 34 | + "capabilities": { "queryAccount": false }, |
| 35 | + "accountContext": { |
| 36 | + "homeAccountId": "bb5r835b-0e7b", |
| 37 | + "environment": "login.windows.net", |
| 38 | + "tenantId": "2855cd1be" |
| 39 | + } |
| 40 | + } |
| 41 | + } |
| 42 | + }, |
| 43 | + { |
| 44 | + "title": "nestedAppAuth - Send NAA message to top window from parent window", |
| 45 | + "type": "callResponse", |
| 46 | + "boxSelector": "#box_sendMessageToTopWindow", |
| 47 | + "platformsExcluded": ["iOS"], |
| 48 | + "inputValue": { |
| 49 | + "id": "2", |
| 50 | + "func": "nestedAppAuth.execute", |
| 51 | + "args": [], |
| 52 | + "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\"}}" |
| 53 | + }, |
| 54 | + "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", |
| 55 | + "expectedTestAppValue": { |
| 56 | + "messageType": "NestdedAppAuthResponse", |
| 57 | + "requestId": "684352c2-7ab7-4def-b7e1-56a386c02a0a", |
| 58 | + "success": true, |
| 59 | + "initContext": { |
| 60 | + "sdkName": "OfficeAuth", |
| 61 | + "sdkVersion": "16.0.18015.15000", |
| 62 | + "capabilities": { "queryAccount": false }, |
| 63 | + "accountContext": { |
| 64 | + "homeAccountId": "bb5r835b-0e7b", |
| 65 | + "environment": "login.windows.net", |
| 66 | + "tenantId": "2855cd1be" |
| 67 | + } |
| 68 | + } |
| 69 | + } |
11 | 70 | } |
12 | 71 | ] |
13 | 72 | } |
0 commit comments