Skip to content

Commit 5e8c93c

Browse files
committed
Update nestedAppAuth.json to include E2E tests
1 parent feafb17 commit 5e8c93c

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

apps/teams-test-app/e2e-test-data/nestedAppAuth.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "nestedAppAuth",
33
"platforms": "*",
44
"version": ">=2.22.0",
5+
"cypressTopWindowReplacement": true,
56
"testCases": [
67
{
78
"title": "nestedAppAuth isNAAChannelRecommended API Call - Success",
@@ -28,6 +29,64 @@
2829
"ios": ">=6.0.0"
2930
},
3031
"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+
}
3190
}
3291
]
3392
}

0 commit comments

Comments
 (0)