feat: add @mention support in send box #2873
Closed
GitHub Actions / Test Results
succeeded
Sep 2, 2024 in 1s
69 passed, 0 failed and 0 skipped
✅ junit.xml
69 tests were completed in 11s with 69 passed, 0 failed and 0 skipped.
✅ Chromium_playwright_/packages/mgt-chat/src/statefulClient/chatOperationScopes.tests.ts
chatOperationScopes tests
✅ should have a minimal permission set
✅ Chromium_playwright_/packages/mgt-chat/src/statefulClient/replaceOrAppendSessionId.tests.ts
replaceOrAppendSessionId tests
✅ should replace existing sessionid
✅ should replace existing sessionid when there are query string params after sessionid
✅ should replace existing sessionid when there are query string params before sessionid
✅ should append sessionid there is a query string params with sessionid as a substring
✅ should replace sessionid there is also a query string params with sessionid as a substring
✅ should append sessionid with ? when no query params present
✅ should append sessionid with & when query params are present
✅ Chromium_playwright_/packages/mgt-chat/src/utils/reduceScopes.tests.ts
reduceScopes tests
✅ should choose the first entry in all arrays when they match
✅ should choose chat.read and chat.read.all
✅ should choose chat.write and chat.read
✅ should pass the chat gpt test
✅ will slightly over calculate for complex sets
✅ will provide the correct minimal permissions for chat
✅ Chromium_playwright_/packages/mgt-chat/src/utils/rewriteEmojiContent.tests.ts
rewrite emoji to standard HTML
✅ rewrites an emoji correctly
✅ rewrites an emoji in a p tag correctly
✅ rewrites an emoji in a p tag with additional content correctly
✅ rewrites emojis in multiple p tags correctly
✅ Chromium_playwright_/packages/mgt-chat/src/utils/updateMessageContentWithImage.tests.ts
updateMessageContentWithImage
✅ should replace the image src
✅ should inline base64 images
✅ Chromium_playwright_/packages/mgt-components/src/components/mgt-file-list/mgt-file-upload/mgt-file-upload.tests.ts
mgt-file-upload - tests
✅ should render
✅ has required scopes
✅ Chromium_playwright_/packages/mgt-components/src/components/mgt-person-card/getMgtPersonCardScopes.tests.ts
getMgtPersonCardScopes() tests
✅ should have a minimal permission set
✅ should have not have Sites.Read.All if files is configured off
✅ should have not have Mail scopes if mail is configured off
✅ should have People.Read but not People.Read.All if showWorksWith is false
✅ should have not have User.Read.All if profile and organization are false
✅ should have not have Chat.ReadWrite if isSendMessageVisible is false
✅ should have not have Chat.ReadWrite if useContactApis is false
✅ Chromium_playwright_/packages/mgt-components/src/components/mgt-person/mgt-person.tests.ts
mgt-person - tests
✅ should render
✅ unknown user should render with a default icon
✅ should render the error state when an unhandled error is thrown
✅ should pop up a flyout on click
✅ should render with initials when given name and surname are supplied
✅ should render with initials when given name and surname are null
✅ should render with first initial when only given name is supplied
✅ should render with first initial when only given name is populated and surname is an empty string
✅ should render with last initial when only surname is supplied
✅ should render with last initial when only surname is populated and given name is an empty string
✅ should render with one initial when only displayName of one word is supplied
✅ should render with two initial when only displayName of more than two words is supplied
✅ should support a change in presence
✅ should not update presence on error
mgt-person - localization
✅ should render with updated photo for text
✅ should render with updated email address text
✅ Chromium_playwright_/packages/mgt-components/src/components/mgt-theme-toggle/mgt-theme-toggle.tests.ts
mgt-theme-toggle - media behavior tests
✅ should render as checked whe color scheme is dark
✅ should emit darkmodechanged true on inital render when the color scheme is dark
✅ should render as unchecked when color scheme is light
mgt-theme-toggle - tests
✅ should render
✅ should emit darkmodechanged with the current 'checked' state on click
✅ should have a checked switch if mode is dark
✅ Chromium_playwright_/packages/mgt-components/src/components/mgt-todo/mgt-todo.tests.ts
mgt-todo - tests
✅ has required scopes
✅ Chromium_playwright_/packages/mgt-components/src/components/sub-components/mgt-spinner/mgt-spinner.tests.ts
mgt-spinner tests
✅ should render
✅ Chromium_playwright_/packages/mgt-element/src/providers/IProvider.tests.ts
IProvider.needsAdditionalScopes tests
✅ should provide an empty array when one scope is already present
✅ should provide an empty array when one scope is already present ignoring case of scopes in provider
✅ should provide an empty array when one scope is already present ignoring case of scopes in provider
✅ should provide an the first element in the passed array where there is no overlap
✅ Chromium_playwright_/packages/mgt-element/src/utils/equals.tests.ts
objectEquals
✅ should return true
✅ should return false
✅ Chromium_playwright_/packages/mgt-element/src/utils/EventDispatcher.tests.ts
EventDispatcher tests
✅ should add and remove event handlers
✅ should not throw when remove is called with an unregistered handler
✅ Chromium_playwright_/packages/mgt-element/src/utils/GraphHelpers.tests.ts
GraphHelpers - prepScopes
✅ should return an empty array when incremental consent is disabled
✅ should return an array of AuthenticationHandlerOptions when incremental consent is enabled with only the first scope in the list
GraphHelpers - chainMiddleware
✅ should return the first middleware when only one is passed
✅ should return undefined when the middleware array is empty
✅ should now throw when the middleware array is undefined
GraphHelpers - validateBaseUrl
✅ should return as a valid Url
✅ should return undefeined for invalid Url
✅ should return undefined for when supplied a %p which is not a well formed url
Loading