Skip to content
Draft
Show file tree
Hide file tree
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
6 changes: 4 additions & 2 deletions apps/teams-test-app/e2e-test-data/appEntity.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"subEntityId": "abc"
},
"expectedAlertValue": "appEntity.selectAppEntity called with 123 + books,animals + abc",
"expectedTestAppValue": "{\"appId\":\"007\",\"appIconUrl\":\"appIncon_pengiun.com\",\"contentUrl\":\"contentUrl.com\",\"displayName\":\"penguin\",\"websiteUrl\":\"penguin.com\"}"
"expectedTestAppValue": "{\"appId\":\"007\",\"appIconUrl\":\"appIncon_pengiun.com\",\"contentUrl\":\"contentUrl.com\",\"displayName\":\"penguin\",\"websiteUrl\":\"penguin.com\"}",
"skipForCallbackBasedRuns": true
},
{
"title": "SelectAppEntity API Call - Success",
Expand All @@ -29,7 +30,8 @@
"categories": ["books", "animals"]
},
"expectedAlertValue": "appEntity.selectAppEntity called with 123 + books,animals",
"expectedTestAppValue": "{\"appId\":\"007\",\"appIconUrl\":\"appIncon_pengiun.com\",\"contentUrl\":\"contentUrl.com\",\"displayName\":\"penguin\",\"websiteUrl\":\"penguin.com\"}"
"expectedTestAppValue": "{\"appId\":\"007\",\"appIconUrl\":\"appIncon_pengiun.com\",\"contentUrl\":\"contentUrl.com\",\"displayName\":\"penguin\",\"websiteUrl\":\"penguin.com\"}",
"skipForCallbackBasedRuns": true
}
]
}
3 changes: 2 additions & 1 deletion apps/teams-test-app/e2e-test-data/appInstallDialog.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"appId": "957f8a7e-fbcd-411d-b69f-acb7eb58b515"
},
"expectedAlertValue": "openAppInstallDialog called with {\"appId\":\"957f8a7e-fbcd-411d-b69f-acb7eb58b515\"}",
"expectedTestAppValue": "called"
"expectedTestAppValue": "called",
"skipForCallbackBasedRuns": true
}
]
}
15 changes: 10 additions & 5 deletions apps/teams-test-app/e2e-test-data/barCode.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,23 @@
"type": "callResponse",
"boxSelector": "#box_requestBarCodePermission",
"isRequestPermissionCall": { "repeatRequestPermissionCall": false },
"expectedTestAppValue": "true"
"expectedTestAppValue": "true",
"skipForCallbackBasedRuns": true
},
{
"title": "repeated requestBarCodePermission API Call with no dialog- Success",
"type": "callResponse",
"boxSelector": "#box_requestBarCodePermission",
"isRequestPermissionCall": { "repeatRequestPermissionCall": true },
"expectedTestAppValue": "true"
"expectedTestAppValue": "true",
"skipForCallbackBasedRuns": true
},
{
"title": "hasBarCodePermission API Call - Success",
"type": "callResponse",
"boxSelector": "#box_hasBarCodePermission",
"expectedTestAppValue": "false"
"expectedTestAppValue": "false",
"skipForCallbackBasedRuns": true
},
{
"title": "scanBarCode API Call - Success",
Expand All @@ -37,7 +40,8 @@
},
"inputValue": {},
"expectedTestAppValue": "\"scannedCode\"",
"expectedAlertValue": ["scanBarCode called with {}"]
"expectedAlertValue": ["scanBarCode called with {}"],
"skipForCallbackBasedRuns": true
},
{
"title": "scanBarCode API Call - Failure",
Expand All @@ -49,7 +53,8 @@
"consentPermission": false
},
"inputValue": {},
"expectedTestAppValue": "Error: {\"errorCode\":1000,\"message\":\"user has explicitly not consented for device permission\"}"
"expectedTestAppValue": "Error: {\"errorCode\":1000,\"message\":\"user has explicitly not consented for device permission\"}",
"skipForCallbackBasedRuns": true
}
]
}
6 changes: 4 additions & 2 deletions apps/teams-test-app/e2e-test-data/calendar.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"itemId": "123"
},
"expectedAlertValue": "openCalendarItem called with itemId: 123",
"expectedTestAppValue": "Completed"
"expectedTestAppValue": "Completed",
"skipForCallbackBasedRuns": true
},
{
"title": "composeMeeting API Call - Success",
Expand All @@ -26,7 +27,8 @@
"content": "content"
},
"expectedAlertValue": "composeMeeting called with ##JSON_INPUT_VALUE##",
"expectedTestAppValue": "Completed"
"expectedTestAppValue": "Completed",
"skipForCallbackBasedRuns": true
}
]
}
3 changes: 2 additions & 1 deletion apps/teams-test-app/e2e-test-data/call.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"source": "source"
},
"expectedAlertValue": "startCall called with ##JSON_INPUT_VALUE##",
"expectedTestAppValue": "result: true"
"expectedTestAppValue": "result: true",
"skipForCallbackBasedRuns": true
}
]
}
18 changes: 12 additions & 6 deletions apps/teams-test-app/e2e-test-data/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"message": "testMessage"
},
"expectedAlertValue": "openChat called with {\"members\":[\"testUpn\"],\"message\":\"testMessage\"}",
"expectedTestAppValue": "chat.openChat() was called, but there was no response from the Host SDK."
"expectedTestAppValue": "chat.openChat() was called, but there was no response from the Host SDK.",
"skipForCallbackBasedRuns": true
},
{
"title": "openChat API Call - Success",
Expand All @@ -28,7 +29,8 @@
"message": "testMessage"
},
"expectedAlertValue": "openChat called with {\"members\":[\"testUpn\"],\"message\":\"testMessage\"}",
"expectedTestAppValue": "chat.openChat() was called, but there was no response from the Host SDK."
"expectedTestAppValue": "chat.openChat() was called, but there was no response from the Host SDK.",
"skipForCallbackBasedRuns": true
},
{
"title": "openGroupChat API Call - Success",
Expand All @@ -40,7 +42,8 @@
"message": "testMessage"
},
"expectedAlertValue": "openChat called with {\"members\":[\"testUpn1\",\"testUpn2\"],\"message\":\"testMessage\"}",
"expectedTestAppValue": "chat.openChat() was called, but there was no response from the Host SDK."
"expectedTestAppValue": "chat.openChat() was called, but there was no response from the Host SDK.",
"skipForCallbackBasedRuns": true
},
{
"title": "openChat2 API Call - Success",
Expand All @@ -52,7 +55,8 @@
"message": "testMessage"
},
"expectedAlertValue": "openChat called with {\"members\":[\"testUpn\"],\"message\":\"testMessage\"}",
"expectedTestAppValue": "chat.openChat() was called"
"expectedTestAppValue": "chat.openChat() was called",
"skipForCallbackBasedRuns": true
},
{
"title": "openChat2 API Call - Success",
Expand All @@ -64,7 +68,8 @@
"message": "testMessage"
},
"expectedAlertValue": "openChat called with {\"members\":[\"testUpn\"],\"message\":\"testMessage\"}",
"expectedTestAppValue": "chat.openChat() was called"
"expectedTestAppValue": "chat.openChat() was called",
"skipForCallbackBasedRuns": true
},
{
"title": "openGroupChat2 API Call - Success",
Expand All @@ -76,7 +81,8 @@
"message": "testMessage"
},
"expectedAlertValue": "openChat called with {\"members\":[\"testUpn1\",\"testUpn2\"],\"message\":\"testMessage\"}",
"expectedTestAppValue": "chat.openGroupChat() was called"
"expectedTestAppValue": "chat.openGroupChat() was called",
"skipForCallbackBasedRuns": true
}
]
}
15 changes: 10 additions & 5 deletions apps/teams-test-app/e2e-test-data/clipboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,42 @@
"type": "callResponse",
"boxSelector": "#box_copyText",
"inputValue": "Hello Team",
"expectedTestAppValue": "true"
"expectedTestAppValue": "true",
"skipForCallbackBasedRuns": true
},
{
"title": "Copy Text - failure",
"type": "callResponse",
"boxSelector": "#box_copyText",
"inputValue": "\"\"",
"skipJsonStringifyOnInputValue": true,
"expectedTestAppValue": "Error: String can't be empty"
"expectedTestAppValue": "Error: String can't be empty",
"skipForCallbackBasedRuns": true
},
{
"title": "Copy JPEG Image - success",
"type": "callResponse",
"boxSelector": "#box_copyImage",
"inputValue": "image/jpeg",
"expectedTestAppValue": "true"
"expectedTestAppValue": "true",
"skipForCallbackBasedRuns": true
},
{
"title": "Copy PNG Image - success",
"type": "callResponse",
"boxSelector": "#box_copyImage",
"inputValue": "image/png",
"expectedTestAppValue": "true"
"expectedTestAppValue": "true",
"skipForCallbackBasedRuns": true
},
{
"title": "Copy Image - failure",
"type": "callResponse",
"boxSelector": "#box_copyImage",
"inputValue": "\"\"",
"skipJsonStringifyOnInputValue": true,
"expectedTestAppValue": "Error: mimeType can't be empty"
"expectedTestAppValue": "Error: mimeType can't be empty",
"skipForCallbackBasedRuns": true
}
]
}
21 changes: 14 additions & 7 deletions apps/teams-test-app/e2e-test-data/conversation.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"version": ">2.0.0-beta.3",
"boxSelector": "#box_closeConversation",
"expectedAlertValue": "closeConversation called",
"expectedTestAppValue": "Conversation Closed!"
"expectedTestAppValue": "Conversation Closed!",
"skipForCallbackBasedRuns": true
},
{
"title": "getChatMembers API Call - Success",
Expand All @@ -17,7 +18,8 @@
"platformsExcluded": ["iOS"],
"boxSelector": "#box_getChatMembers",
"expectedAlertValue": "getChatMembers called",
"expectedTestAppValue": "{\"members\":[{\"upn\":\"testUpn\"}]}"
"expectedTestAppValue": "{\"members\":[{\"upn\":\"testUpn\"}]}",
"skipForCallbackBasedRuns": true
},
{
"title": "getChatMembers API Call - Success",
Expand All @@ -26,7 +28,8 @@
"platformsExcluded": ["Web"],
"boxSelector": "#box_getChatMembers",
"expectedAlertValue": "getChatMembers called",
"expectedTestAppValue": "{\"members\":[{\"principalName\":\"TestUser\"}]}"
"expectedTestAppValue": "{\"members\":[{\"principalName\":\"TestUser\"}]}",
"skipForCallbackBasedRuns": true
},
{
"title": "openConversation API Call - with startConversation",
Expand All @@ -49,7 +52,8 @@
"channelId": "testChannelId",
"entityId": "testEntityId"
},
"expectedTestAppValue": "Start Conversation Subentity Id testSubEntityId Conversation Id: testConversationId Entity Id: testEntityId Channel Id: testChannelId"
"expectedTestAppValue": "Start Conversation Subentity Id testSubEntityId Conversation Id: testConversationId Entity Id: testEntityId Channel Id: testChannelId",
"skipForCallbackBasedRuns": true
},
{
"title": "openConversation API Call - with startConversation",
Expand All @@ -72,7 +76,8 @@
"channelId": "testChannelId",
"entityId": "testEntityId"
},
"expectedTestAppValue": "Start Conversation Subentity Id testSubEntityId Conversation Id: testConversationId Entity Id: testEntityId Channel Id: testChannelId"
"expectedTestAppValue": "Start Conversation Subentity Id testSubEntityId Conversation Id: testConversationId Entity Id: testEntityId Channel Id: testChannelId",
"skipForCallbackBasedRuns": true
},
{
"title": "openConversation API Call - with closeConversation",
Expand All @@ -95,7 +100,8 @@
"channelId": "closeConversationChannelId",
"entityId": "closeConversationEntityId"
},
"expectedTestAppValue": "Close Conversation Subentity Id closeConversationSubEntityId Conversation Id: closeConversationConversationId Entity Id: closeConversationEntityId Channel Id: closeConversationChannelId"
"expectedTestAppValue": "Close Conversation Subentity Id closeConversationSubEntityId Conversation Id: closeConversationConversationId Entity Id: closeConversationEntityId Channel Id: closeConversationChannelId",
"skipForCallbackBasedRuns": true
},
{
"title": "openConversation API Call - with closeConversation",
Expand All @@ -118,7 +124,8 @@
"channelId": "closeConversationChannelId",
"entityId": "closeConversationEntityId"
},
"expectedTestAppValue": "Start Conversation Subentity Id closeConversationSubEntityId Conversation Id: closeConversationConversationId Entity Id: closeConversationEntityId Channel Id: closeConversationChannelId"
"expectedTestAppValue": "Start Conversation Subentity Id closeConversationSubEntityId Conversation Id: closeConversationConversationId Entity Id: closeConversationEntityId Channel Id: closeConversationChannelId",
"skipForCallbackBasedRuns": true
}
]
}
Loading