Skip to content
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

Updated JSON test data files which would be used on Android Test Engine #2428

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
4fe91ec
Updated JSON test data files which would be used on Android Test Engine
BEChiaha Jul 25, 2024
3e1eace
Updated GeoLocation.json
BEChiaha Jul 25, 2024
4221d3b
Update apps/teams-test-app/e2e-test-data/app.json
BEChiaha Jul 25, 2024
08943f5
Update apps/teams-test-app/e2e-test-data/location.json
BEChiaha Jul 25, 2024
efc1ed5
Merge branch 'main' into Bernice/AndroidTestEngineJSONFilesUpdate
shrshindeMSFT Jul 29, 2024
789a6d5
Final update for JSON test files for Android test engine
BEChiaha Aug 2, 2024
2ec8d06
resolved conflict in app.json
BEChiaha Aug 2, 2024
ee86dc7
Made changes to test app to allow for sorted output
BEChiaha Aug 2, 2024
26d3f51
Took off unecessary input sorting
BEChiaha Aug 2, 2024
4ebd481
Updated files.tsx to fix failing IOS E2E tests
BEChiaha Aug 2, 2024
66fed79
Updated filesApIs.tsx to fix failing IOS UI tests
BEChiaha Aug 2, 2024
cd7a9e3
Merge branch 'main' into Bernice/AndroidTestEngineJSONFilesUpdate
BEChiaha Aug 2, 2024
b4e2168
Updated app.json file
BEChiaha Aug 2, 2024
7275f02
Merge branch 'Bernice/AndroidTestEngineJSONFilesUpdate' of https://gi…
BEChiaha Aug 2, 2024
78347f4
Fixed typo
BEChiaha Aug 2, 2024
d9a289b
Updated test app for Secondary Browser isSupported Check
BEChiaha Aug 3, 2024
711413b
Reverted checkBrowserSupportCapability to previous version
BEChiaha Aug 4, 2024
ae867c7
Updated pages.json test data file to be used by Android E2E test engine
BEChiaha Aug 5, 2024
00064d7
Updated stagelayout to s type string as required by test app
BEChiaha Aug 5, 2024
b4c293f
Updated meetig room JSON
BEChiaha Aug 5, 2024
d9d7a83
Updated meeting.json file
BEChiaha Aug 5, 2024
c214e7d
Updated meeting.json file
BEChiaha Aug 5, 2024
5c9aa31
Updated meeting.json
BEChiaha Aug 5, 2024
844ff13
Updated Meeting.json to tackle build fail
BEChiaha Aug 5, 2024
d98d078
Updated meeting.json
BEChiaha Aug 5, 2024
8376b4c
Included comment changes in FilesAPIs.tsx file
BEChiaha Aug 5, 2024
7da78f2
Updated test name to specify just Android platform
BEChiaha Aug 6, 2024
6dd86f8
Specified JSON getCurrentLocation to be For just Android Platform
BEChiaha Aug 6, 2024
f61c9e7
fixing build errors
BEChiaha Aug 6, 2024
4f1e48c
Making changes to geolocation
BEChiaha Aug 6, 2024
672670d
Merge branch 'main' into Bernice/AndroidTestEngineJSONFilesUpdate
shrshindeMSFT Aug 6, 2024
8395052
Merge branch 'main' into Bernice/AndroidTestEngineJSONFilesUpdate
BEChiaha Aug 7, 2024
c16479f
Merge branch 'main' into Bernice/AndroidTestEngineJSONFilesUpdate
BEChiaha Aug 7, 2024
d4b578d
Updated getCurrentLocation title to be Android specific test
BEChiaha Aug 8, 2024
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
15 changes: 8 additions & 7 deletions apps/teams-test-app/e2e-test-data/app.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"name": "App",
"platforms": "*",
"platforms": ["*"],
"testCases": [
{
"title": "openLink API Call - Success",
"type": "callResponse",
"boxSelector": "#box_executeDeepLink2",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"inputValue": "https://bing.com",
"expectedWindowOpenTarget": "https://bing.com"
},
{
"title": "openLink startCall API Call - Success",
"type": "callResponse",
"boxSelector": "#box_executeDeepLink2",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"inputValue": "https://teams.microsoft.com/l/call/0/0?users=testUser1,testUser2&withVideo=true&source=test",
"expectedAlertValue": "startCall called with {\"targets\":[\"testUser1\",\"testUser2\"],\"requestedModalities\":[\"audio\",\"video\"],\"source\":\"test\"}",
"expectedTestAppValue": "Completed"
Expand All @@ -23,7 +23,7 @@
"title": "openLink openAppInstallDialog API Call - Success",
"type": "callResponse",
"boxSelector": "#box_executeDeepLink2",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"inputValue": "https://teams.microsoft.com/l/app/testAppId",
"expectedAlertValue": "openAppInstallDialog called with {\"appId\":\"testAppId\"}",
"expectedTestAppValue": "Completed"
Expand All @@ -39,7 +39,7 @@
{
"title": "openLink composeMeeting API Call - Success",
"type": "callResponse",
"boxSelector": "#box_executeDeepLink2",
"boxSelector": "#box_e.jxecuteDeepLink2",
jekloudaMSFT marked this conversation as resolved.
Show resolved Hide resolved
"inputValue": "https://teams.microsoft.com/l/meeting/new?subject=testSubject&attendees=testAttendee1,testAttendee2&startTime=testStartTime&endTime=testEndTime&content=testContent",
"expectedAlertValue": "composeMeeting called with {\"attendees\":[\"testAttendee1\",\"testAttendee2\"],\"startTime\":\"testStartTime\",\"endTime\":\"testEndTime\",\"subject\":\"testSubject\",\"content\":\"testContent\"}",
"expectedTestAppValue": "Completed"
Expand All @@ -66,7 +66,7 @@
"title": "openLink stageView.open API Call with thread id - Success",
"type": "callResponse",
"boxSelector": "#box_executeDeepLink2",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"inputValue": "https://teams.microsoft.com/l/stage/testAppId/0?context=%7B%22contentUrl%22%3A%22testContentUrl%22%2C%22websiteUrl%22%3A%22testWebsiteUrl%22%2C%22title%22%3A%22TestTitle%22%2C%22threadId%22%3A%22TestThreadId%22%7D",
"expectedAlertValue": "stageView.open called with {\"appId\":\"testAppId\",\"contentUrl\":\"testContentUrl\",\"threadId\":\"TestThreadId\",\"title\":\"TestTitle\",\"websiteUrl\":\"testWebsiteUrl\"}",
"expectedTestAppValue": "Completed"
Expand All @@ -75,14 +75,15 @@
"title": "openLink stageView.open API Call without thread id - Success",
"type": "callResponse",
"boxSelector": "#box_executeDeepLink2",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"inputValue": "https://teams.microsoft.com/l/stage/testAppId/0?context=%7B%22contentUrl%22%3A%22testContentUrl%22%2C%22websiteUrl%22%3A%22testWebsiteUrl%22%2C%22title%22%3A%22TestTitle%22%7D",
"expectedAlertValue": "stageView.open called with {\"appId\":\"testAppId\",\"contentUrl\":\"testContentUrl\",\"title\":\"TestTitle\",\"websiteUrl\":\"testWebsiteUrl\"}",
"expectedTestAppValue": "Completed"
},
{
"title": "openLink appLink domain doesn't match API Call - executeDeepLink called",
"type": "callResponse",
"platformsExcluded": ["Android"],
"boxSelector": "#box_executeDeepLink2",
"inputValue": "https://contoso.com/l/entity/testAppId/tasklist123",
"expectedWindowOpenTarget": "https://contoso.com/l/entity/testAppId/tasklist123",
Expand Down
10 changes: 5 additions & 5 deletions apps/teams-test-app/e2e-test-data/authentication.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"title": "getUser API Call - Success",
"version": "2.0.0-beta.2",
"type": "callResponse",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"boxSelector": "#box_getUser",
"expectedTestAppValue": "Success: {\"oid\":\"mockoid\",\"tid\":\"mocktid\",\"upn\":\"mockupn\",\"loginHint\":\"mockLoginHint\",\"displayName\":\"mockName\",\"dataResidency\":\"public\"}"
},
Expand All @@ -25,7 +25,7 @@
"web": "<=3.0.2"
},
"type": "callResponse",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"boxSelector": "#box_getUser",
"testUrlParams": [["appDefOverrides", "{\"isFullTrustApp\": false}"]],
"expectedTestAppValue": "Error: Error: Error returned, code = 500, message = App does not have the required permissions for this operation"
Expand All @@ -37,7 +37,7 @@
"web": ">3.0.2"
},
"type": "callResponse",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"boxSelector": "#box_getUser",
"testUrlParams": [["appDefOverrides", "{\"isFullTrustApp\": false, \"isMicrosoftOwned\": false}"]],
"expectedTestAppValue": "Error: Error: Error returned, code = 500, message = App does not have the required permissions for this operation"
Expand All @@ -49,7 +49,7 @@
"web": ">3.0.2"
},
"type": "callResponse",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"boxSelector": "#box_getUser",
"testUrlParams": [["appDefOverrides", "{\"isFullTrustApp\": true, \"isMicrosoftOwned\": false}"]],
"expectedTestAppValue": "{\"oid\":\"mockoid\",\"tid\":\"mocktid\",\"upn\":\"mockupn\",\"loginHint\":\"mockLoginHint\",\"displayName\":\"mockName\",\"dataResidency\":\"public\"}"
Expand All @@ -61,7 +61,7 @@
"web": ">3.0.2"
},
"type": "callResponse",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"boxSelector": "#box_getUser",
"testUrlParams": [["appDefOverrides", "{\"isFullTrustApp\": true, \"isMicrosoftOwned\": true}"]],
"expectedTestAppValue": "{\"oid\":\"mockoid\",\"tid\":\"mocktid\",\"upn\":\"mockupn\",\"loginHint\":\"mockLoginHint\",\"displayName\":\"mockName\",\"dataResidency\":\"public\"}"
Expand Down
2 changes: 2 additions & 0 deletions apps/teams-test-app/e2e-test-data/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
{
"title": "openChat API Call - Success",
"type": "callResponse",
"platformsExcluded": ["Android"],
"version": ">2.0.0-beta.3 && <=2.17.0",
"boxSelector": "#box_openChat",
"inputValue": {
Expand Down Expand Up @@ -46,6 +47,7 @@
"title": "openChat2 API Call - Success",
"type": "callResponse",
"version": ">2.2.0 && <=2.17.0",
"platformsExcluded": ["Android"],
"boxSelector": "#box_openChat2",
"inputValue": {
"user": ["testUpn"],
Expand Down
6 changes: 3 additions & 3 deletions apps/teams-test-app/e2e-test-data/conversation.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"title": "getChatMembers API Call - Success",
"type": "callResponse",
"version": ">2.0.0-beta.3",
"platformsExcluded": ["Web"],
"platformsExcluded": ["Web","Android"],
"boxSelector": "#box_getChatMembers",
"expectedAlertValue": "getChatMembers called",
"expectedTestAppValue": "{\"members\":[{\"principalName\":\"TestUser\"}]}"
Expand Down Expand Up @@ -54,7 +54,7 @@
{
"title": "openConversation API Call - with startConversation",
"version": "2.0.0-beta.2",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"boxSelector": "#box_openConversation",
"type": "registerAndRaiseEvent",
"inputValue": {
Expand Down Expand Up @@ -100,7 +100,7 @@
{
"title": "openConversation API Call - with closeConversation",
"version": "2.0.0-beta.2",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"boxSelector": "#box_openConversation",
"type": "registerAndRaiseEvent",
"inputValue": {
Expand Down
4 changes: 3 additions & 1 deletion apps/teams-test-app/e2e-test-data/dialog.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "Dialog",
"platforms": "Web",
"platforms": ["Web","Android"],
"checkIsSupported": {
"domElementName": "checkCapabilityDialog"
},
"testCases": [
{
"title": "dialogResize API Call - Success",
"type": "callResponse",
"platformsExcluded": ["Android"],
"testUrlParams": [["frameContext", "task"]],
"boxSelector": "#box_dialogResize",
"inputValue": {
Expand All @@ -19,6 +20,7 @@
{
"title": "dialogSubmit API Call - Success",
"type": "callResponse",
"platformsExcluded": ["Android"],
"testUrlParams": [["frameContext", "task"]],
"boxSelector": "#box_dialogSubmitWithInput",
"inputValue": {
Expand Down
13 changes: 8 additions & 5 deletions apps/teams-test-app/e2e-test-data/files.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
{
"title": "openFilePreview API Call - Success",
"type": "callResponse",
"platformsExcluded":["Android"],
"version": "2.0.0-beta.2",
"boxSelector": "#box_openFilePreview",
"inputValue": {
Expand Down Expand Up @@ -59,7 +60,7 @@
{
"title": "getCloudStorageFolders API Call - Failure (Not Full Trust)",
"type": "callResponse",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"version": ">2.0.0-beta.5",
"boxSelector": "#box_getCloudStorageFolders2",
"inputValue": "testChannelId",
Expand All @@ -69,6 +70,7 @@
{
"title": "getCloudStorageFolders API Call - Success",
"type": "callResponse",
"platformsExcluded": ["Android"],
"version": "2.0.0-beta.2",
"boxSelector": "#box_getCloudStorageFolders",
"inputValue": "testChannelId",
Expand All @@ -87,6 +89,7 @@
{
"title": "addCloudStorageFolder API Call - Success",
"type": "callResponse",
"platformsExcluded": ["Android"],
"version": "2.0.0-beta.2",
"boxSelector": "#box_addCloudStorageFolder",
"inputValue": "testChannelId",
Expand Down Expand Up @@ -115,7 +118,7 @@
"title": "copyMoveFiles API Call - Success",
"version": ">2.0.0-beta.2",
"type": "callResponse",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"boxSelector": "#box_copyMoveFiles",
"inputValue": {
"selectedFiles": [
Expand Down Expand Up @@ -147,7 +150,7 @@
{
"title": "openCloudStorageFile API Call - Success",
"type": "callResponse",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"boxSelector": "#box_openCloudStorageFile",
"inputValue": {
"file": {
Expand All @@ -166,7 +169,7 @@
{
"title": "getExternalProviders API Call - Success",
"type": "callResponse",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"version": ">2.0.0",
"boxSelector": "#box_getExternalProviders",
"checkboxState": true,
Expand All @@ -176,7 +179,7 @@
{
"title": "getCloudStorageFolderContents API Call - Success",
"type": "callResponse",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"version": ">2.0.0-beta.2",
"boxSelector": "#box_getCloudStorageFolderContents",
"inputValue": {
Expand Down
15 changes: 14 additions & 1 deletion apps/teams-test-app/e2e-test-data/geoLocation.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "GeoLocation",
"platforms": "Web",
"platforms": ["Web","Android"],
"version": ">=2.1.0",
"checkIsSupported": {
"capabilityName": "GeoLocation",
Expand Down Expand Up @@ -31,6 +31,19 @@
{
"title": "getCurrentLocation API Call - Success",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the difference between the 2 "getCurrentLocation API Call - Success" tests here?

"type": "callResponse",
"platformsExcluded": ["Web"],
"boxSelector": "#box_getCurrentLocation",
"requestPermissionBeforeThisCall": {
"boxSelector": "#box_requestGeoLocationPermission",
"consentPermission": true
},
"expectedAlertValue": ["getCurrentLocation is called"],
"expectedTestAppValue": "{\"latitude\":51.50735,\"longitude\":-0.127758,\"accuracy\":2.01,\"timestamp\":200}"
},
{
"title": "getCurrentLocation API Call - Success",
"type": "callResponse",
"platformsExcluded": ["Web"],
"boxSelector": "#box_getCurrentLocation",
"requestPermissionBeforeThisCall": {
"boxSelector": "#box_requestGeoLocationPermission",
Expand Down
37 changes: 32 additions & 5 deletions apps/teams-test-app/e2e-test-data/location.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{
"title": "getLocation API Call - Success",
"type": "callResponse",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"boxSelector": "#box_getLocation",
"requestPermissionBeforeThisCall": {
"boxSelector": "#box_requestGeoLocationPermission",
Expand All @@ -17,10 +17,23 @@
"expectedAlertValue": "location.map.chooseLocation is called.",
"expectedTestAppValue": "{\"latitude\":51.50735,\"longitude\":-0.127758,\"accuracy\":2,\"timestamp\":200}"
},
{
"title": "getLocation API Call - Success",
"type": "callResponse",
"platformsExcluded": ["iOS","Web"],
"boxSelector": "#box_getLocation",
"requestPermissionBeforeThisCall": {
"boxSelector": "#box_requestGeoLocationPermission",
"consentPermission": true
},
"inputValue": { "allowChooseLocation": true },
"expectedAlertValue": "location.map.chooseLocation is called.",
"expectedTestAppValue": "{\"latitude\":51.50735,\"longitude\":-0.127758,\"accuracy\":2.01,\"timestamp\":200}"
},
{
"title": "showLocation API Call - Success",
"type": "callResponse",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"boxSelector": "#box_showLocation",
"requestPermissionBeforeThisCall": {
"boxSelector": "#box_requestGeoLocationPermission",
Expand All @@ -29,7 +42,7 @@
"inputValue": {
"latitude": 51.50735,
"longitude": -0.127758,
"accuracy": 2,
"accuracy": 2.01,
"timestamp": 200
},
"expectedAlertValue": "location.map.showLocation called with ##JSON_INPUT_VALUE##",
Expand All @@ -38,7 +51,7 @@
{
"title": "getLocation API Call - Success",
"type": "callResponse",
"platformsExcluded": ["Web"],
"platformsExcluded": ["Web","Android"],
"boxSelector": "#box_getLocation",
"requestPermissionBeforeThisCall": {
"boxSelector": "#box_requestGeoLocationPermission",
Expand All @@ -49,6 +62,20 @@
"expectedAlertValue": "location.map.chooseLocation is called.",
"expectedTestAppValue": "{\"latitude\":51.50735,\"longitude\":-0.127758,\"accuracy\":2,\"timestamp\":200}"
},
{
"title": "getLocation API Call - Success",
"type": "callResponse",
"platformsExcluded": ["Web","iOS"],
"boxSelector": "#box_getLocation",
"requestPermissionBeforeThisCall": {
"boxSelector": "#box_requestGeoLocationPermission",
"consentPermission": "Allow",
"expectedOutput": "true"
},
"inputValue": { "allowChooseLocation": true },
"expectedAlertValue": "location.map.chooseLocation is called.",
"expectedTestAppValue": "{\"latitude\":51.50735,\"longitude\":-0.127758,\"accuracy\":2.01,\"timestamp\":200}"
},
{
"title": "showLocation API Call - Success",
"type": "callResponse",
Expand All @@ -62,7 +89,7 @@
"inputValue": {
"latitude": 51.50735,
"longitude": -0.127758,
"accuracy": 2,
"accuracy": 2.01,
"timestamp": 200
},
"expectedAlertValue": "location.map.showLocation called with ##JSON_INPUT_VALUE##",
Expand Down
12 changes: 11 additions & 1 deletion apps/teams-test-app/e2e-test-data/media.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Media",
"platforms": "Web",
"platforms": ["Web","Android"],
"testCases": [
{
"title": "selectMedia API Call - Success",
Expand All @@ -24,11 +24,20 @@
{
"title": "getMedia API Call - Success",
"type": "callResponse",
"platformsExcluded": ["Android"],
"boxSelector": "#box_getMedia",
"inputValue": {},
"expectedAlertValue": ["selectMedia called with ##JSON_INPUT_VALUE##", "getMedia called with \"ABCDEFGHIJKL\""],
"expectedTestAppValue": "Received Blob (length: 74163)"
},
{
"title": "getMedia API Call - Success",
"type": "callResponse",
"platformsExcluded": ["Web","iOS"],
"boxSelector": "#box_getMedia",
"inputValue": {},
"expectedTestAppValue": "{\"errorCode\":500,\"message\":\"An internal server error occurred\"}"
},
{
"title": "viewImagesWithIds API Call - Success",
"type": "callResponse",
Expand Down Expand Up @@ -61,6 +70,7 @@
{
"title": "viewImagesWithUrls API Call - Success",
"type": "callResponse",
"platformsExcluded": ["Android"],
"version": "2.0.0-beta.2",
"boxSelector": "#box_viewImagesWithUrls",
"inputValue": "first, second",
Expand Down
Loading