Skip to content

fix: ensure consistency level header present for user search

Sign in for the full log view
GitHub Actions / Test Results succeeded Feb 8, 2024 in 0s

45 passed, 0 failed and 0 skipped

Tests passed successfully

✅ junit.xml

45 tests were completed in 5s with 45 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Chromium_playwright_/packages/mgt-components/src/components/mgt-file-list/mgt-file-upload/mgt-file-upload.tests.ts 2✅ 92ms
Chromium_playwright_/packages/mgt-components/src/components/mgt-person-card/getMgtPersonCardScopes.tests.ts 7✅ 1ms
Chromium_playwright_/packages/mgt-components/src/components/mgt-person/mgt-person.tests.ts 12✅ 4s
Chromium_playwright_/packages/mgt-components/src/components/mgt-theme-toggle/mgt-theme-toggle.tests.ts 6✅ 624ms
Chromium_playwright_/packages/mgt-components/src/components/mgt-todo/mgt-todo.tests.ts 1✅ 1ms
Chromium_playwright_/packages/mgt-components/src/components/sub-components/mgt-spinner/mgt-spinner.tests.ts 1✅ 2ms
Chromium_playwright_/packages/mgt-element/src/providers/IProvider.tests.ts 4✅ 2ms
Chromium_playwright_/packages/mgt-element/src/utils/equals.tests.ts 2✅ 2ms
Chromium_playwright_/packages/mgt-element/src/utils/EventDispatcher.tests.ts 2✅ 3ms
Chromium_playwright_/packages/mgt-element/src/utils/GraphHelpers.tests.ts 8✅ 9ms

✅ 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
  ✅ 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
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