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

feat: add @mention support in send box #2873

Closed
wants to merge 26 commits into from

Revert "test git status validation"

d943035
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Closed

feat: add @mention support in send box #2873

Revert "test git status validation"
d943035
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Results succeeded Sep 2, 2024 in 1s

69 passed, 0 failed and 0 skipped

Tests passed successfully

✅ junit.xml

69 tests were completed in 11s with 69 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Chromium_playwright_/packages/mgt-chat/src/statefulClient/chatOperationScopes.tests.ts 1✅ 5ms
Chromium_playwright_/packages/mgt-chat/src/statefulClient/replaceOrAppendSessionId.tests.ts 7✅ 3ms
Chromium_playwright_/packages/mgt-chat/src/utils/reduceScopes.tests.ts 6✅ 2ms
Chromium_playwright_/packages/mgt-chat/src/utils/rewriteEmojiContent.tests.ts 4✅ 13ms
Chromium_playwright_/packages/mgt-chat/src/utils/updateMessageContentWithImage.tests.ts 2✅ 2ms
Chromium_playwright_/packages/mgt-components/src/components/mgt-file-list/mgt-file-upload/mgt-file-upload.tests.ts 2✅ 131ms
Chromium_playwright_/packages/mgt-components/src/components/mgt-person-card/getMgtPersonCardScopes.tests.ts 7✅ 4ms
Chromium_playwright_/packages/mgt-components/src/components/mgt-person/mgt-person.tests.ts 16✅ 10s
Chromium_playwright_/packages/mgt-components/src/components/mgt-theme-toggle/mgt-theme-toggle.tests.ts 6✅ 921ms
Chromium_playwright_/packages/mgt-components/src/components/mgt-todo/mgt-todo.tests.ts 1✅ 2ms
Chromium_playwright_/packages/mgt-components/src/components/sub-components/mgt-spinner/mgt-spinner.tests.ts 1✅ 3ms
Chromium_playwright_/packages/mgt-element/src/providers/IProvider.tests.ts 4✅ 2ms
Chromium_playwright_/packages/mgt-element/src/utils/equals.tests.ts 2✅ 1ms
Chromium_playwright_/packages/mgt-element/src/utils/EventDispatcher.tests.ts 2✅ 1ms
Chromium_playwright_/packages/mgt-element/src/utils/GraphHelpers.tests.ts 8✅ 14ms

✅ 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