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 2 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
2 changes: 1 addition & 1 deletion apps/teams-test-app/e2e-test-data/app.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "App",
"platforms": "*",
"platforms": ["iOS","WEB"],
BEChiaha marked this conversation as resolved.
Show resolved Hide resolved
"testCases": [
{
"title": "openLink API Call - Success",
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.1.0"
},
"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.1.0"
},
"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.1.0"
},
"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.1.0"
},
"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
1 change: 1 addition & 0 deletions apps/teams-test-app/e2e-test-data/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,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
2 changes: 1 addition & 1 deletion apps/teams-test-app/e2e-test-data/conversation.json
Original file line number Diff line number Diff line change
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
3 changes: 2 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 Down
14 changes: 13 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 @@ -39,6 +39,18 @@
"expectedAlertValue": ["getCurrentLocation is called"],
"expectedTestAppValue": "{\"latitude\":51.50735,\"longitude\":-0.127758,\"accuracy\":2,\"timestamp\":200}"
},
{
"title": "getCurrentLocation API Call - Success",
"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,\"timestamp\":200}"
},
{
"title": "getCurrentLocation API Call - Failure",
"type": "callResponse",
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"],
BEChiaha marked this conversation as resolved.
Show resolved Hide resolved
"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
1 change: 1 addition & 0 deletions apps/teams-test-app/e2e-test-data/media.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,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