diff --git a/apps/teams-test-app/e2e-test-data/nestedAppAuth.json b/apps/teams-test-app/e2e-test-data/nestedAppAuth.json index f306ee32e2..69974c7ce1 100644 --- a/apps/teams-test-app/e2e-test-data/nestedAppAuth.json +++ b/apps/teams-test-app/e2e-test-data/nestedAppAuth.json @@ -2,6 +2,7 @@ "name": "nestedAppAuth", "platforms": "*", "version": ">=2.22.0", + "cypressTopWindowReplacement": true, "testCases": [ { "title": "nestedAppAuth isNAAChannelRecommended API Call - Success", @@ -28,6 +29,22 @@ "ios": ">=6.0.0" }, "expectedTestAppValue": "NAA deeply nested auth is supported" + }, + { + "title": "nestedAppAuth - send message to NAA bridge from parent window", + "type": "callResponse", + "boxSelector": "#box_sendMessageToNestedAppAuthBridge", + "inputValue": { + "messageType": "NestedAppAuthRequest", + "method": "GetToken", + "sendTime": 1732269811006, + "clientLibrary": "MetaOS", + "clientLibraryVersion": "1.0.0", + "requestId": "684352c2-7ab7-4def-b7e1-XXXXXXXXXXX", + "tokenParams": { "correlationId": "39dc85fe-9054-11ed-a1eb-XXXXXXXXXXX" } + }, + "expectedAlertValue": "nestedAppAuth.execute called with payload: ##JSON_INPUT_VALUE##, origin: https://localhost:4000/, isTrustedOrigin: true", + "expectedTestAppValue": "\"{\\\"messageType\\\":\\\"NestedAppAuthResponse\\\",\\\"requestId\\\":\\\"684352c2-7ab7-4def-b7e1-XXXXXXXXXXX\\\",\\\"success\\\":true,\\\"initContext\\\":{\\\"sdkName\\\":\\\"OfficeAuth\\\",\\\"sdkVersion\\\":\\\"16.0.18015.15000\\\",\\\"capabilities\\\":{\\\"queryAccount\\\":false},\\\"accountContext\\\":{\\\"homeAccountId\\\":\\\"bb5r835b-XXXX\\\",\\\"environment\\\":\\\"login.windows.net\\\",\\\"tenantId\\\":\\\"2855cd1be\\\"}}}\"" } ] }