Skip to content

Update nestedAppAuth.json to include E2E tests #2652

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions apps/teams-test-app/e2e-test-data/nestedAppAuth.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "nestedAppAuth",
"platforms": "*",
"version": ">=2.22.0",
"cypressTopWindowReplacement": true,
"testCases": [
{
"title": "nestedAppAuth isNAAChannelRecommended API Call - Success",
Expand All @@ -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\\\"}}}\""
}
]
}
Loading