Skip to content

Add UI test for custom composite call control options#2324

Merged
JamesBurnside merged 12 commits intomainfrom
jaburnsi/add-ui-test-for-custom-call-composite-options
Sep 14, 2022
Merged

Add UI test for custom composite call control options#2324
JamesBurnside merged 12 commits intomainfrom
jaburnsi/add-ui-test-for-custom-call-composite-options

Conversation

@JamesBurnside
Copy link
Copy Markdown
Member

@JamesBurnside JamesBurnside commented Sep 9, 2022

What

  • Add a UI test for setting specific call and callwithchat composite call control options
  • Update callwithchat hermetic tests to support qArgs

Why

Missing test area, came across a bug when locally testing: #2325

How Tested

n/a - see updated snapshots

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Sep 9, 2022

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Sep 9, 2022

Calling bundle size is not changed.

  • Current size: 5067802
  • Base size: 5067802
  • Diff size: 0

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Sep 9, 2022

CallWithChat bundle size is not changed.

  • Current size: 5453303
  • Base size: 5453303
  • Diff size: 0

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Sep 9, 2022

Chat bundle size is not changed.

  • Current size: 5193386
  • Base size: 5193386
  • Diff size: 0

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Sep 9, 2022

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Sep 9, 2022

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Sep 9, 2022

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Sep 9, 2022

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Sep 9, 2022

cameraButton: {
disabled: true
},
microphoneButton: true,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does microphoneButton: true signify as the microphone is disabled as well in the snapshots

Copy link
Copy Markdown
Member Author

@JamesBurnside JamesBurnside Sep 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are simply valid options so including them in the test, we have a bug where setting it to true is causing it to become disabled: #2325

disabled: true
},
endCallButton: false,
microphoneButton: true,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

queryArgs.injectCustomButtons
queryArgs.customCallCompositeOptions
? queryArgs.customCallCompositeOptions
: queryArgs.injectCustomButtons
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not part of this PR but can we remove injectCustomButtons query arg. It seems like a less flexible version of customCallCompositeOptions.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should, but slightly more difficult as it includes a function which doesn't JSON.stringify well (we'd need to add custom logic to handle it)

@JamesBurnside JamesBurnside enabled auto-merge (squash) September 14, 2022 20:44
@github-actions
Copy link
Copy Markdown
Contributor

@JamesBurnside JamesBurnside merged commit 8f82209 into main Sep 14, 2022
@JamesBurnside JamesBurnside deleted the jaburnsi/add-ui-test-for-custom-call-composite-options branch September 14, 2022 21:18
carocao-msft added a commit that referenced this pull request Sep 19, 2022
* show/hide menu button

* Change files

* lint fix'

* Update composite automation snapshots

* fix test

* Update composite automation snapshots

* Update composite automation snapshots

* show elipses when hovered

* Update composite automation snapshots

* Update composite automation snapshots

* change id to classname'

* Update composite automation snapshots

* Update composite automation snapshots

* new changes based on standup discussion

* Add UI test for custom composite call control options (#2324)

* Update storybook to contain docs on customizing call controls in call composite (#2333)

* snapshots

* Update packages/react-composites CallComposite browser test snapshots

* Update packages/react-composites CallComposite browser test snapshots

* test

* Update packages/react-composites CallComposite browser test snapshots

* Update packages/react-composites CallComposite browser test snapshots

* test

* test

* Update packages/react-composites CallComposite browser test snapshots

* Update packages/react-composites CallComposite browser test snapshots

* [Call Readiness] Unsupported Browser UI (#2334)

* create new view for the composite

* Add base component and strings

* remove button

* create new story files

* add story book content and build

* fix icons

* move styles to own file

* add CC for unsupported browser

* more CC work

* Change files

* fix linter errors

* make component beta

* remove console

* fix cc error

* make supporting types interfaces

* build API

* fix cc

* rebuild api

* fix nits

* Small Refactor: move call composite side pane state handling to its own hook (#2342)

* Add instructions to update callwithchat hero sample (#2337)

* new changes based on standup discussion

* Add UI test for custom composite call control options (#2324)

* new changes based on standup discussion

* Add UI test for custom composite call control options (#2324)

* new changes based on standup discussion

* new changes based on standup discussion

* new changes based on standup discussion

* test fix

* test fix

* Update packages/react-composites CallComposite browser test snapshots

* Update packages/react-composites CallComposite browser test snapshots

* delete old snapshot'

* Update packages/react-composites CallComposite browser test snapshots

* test

* Update packages/react-composites CallComposite browser test snapshots

* Update packages/react-composites CallComposite browser test snapshots

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Anjul Garg <anjulgarg@live.com>
Co-authored-by: James Burnside <2684369+JamesBurnside@users.noreply.github.com>
Co-authored-by: Donald McEachern <94866715+dmceachernmsft@users.noreply.github.com>
Co-authored-by: Prathmesh Prabhu <82062616+prprabhu-ms@users.noreply.github.com>
carocao-msft added a commit that referenced this pull request Sep 20, 2022
* show/hide menu button

* Change files

* lint fix'

* Update composite automation snapshots

* fix test

* Update composite automation snapshots

* Update composite automation snapshots

* show elipses when hovered

* Update composite automation snapshots

* Update composite automation snapshots

* change id to classname'

* Update composite automation snapshots

* Update composite automation snapshots

* new changes based on standup discussion

* Add UI test for custom composite call control options (#2324)

* Update storybook to contain docs on customizing call controls in call composite (#2333)

* snapshots

* Update packages/react-composites CallComposite browser test snapshots

* Update packages/react-composites CallComposite browser test snapshots

* test

* Update packages/react-composites CallComposite browser test snapshots

* Update packages/react-composites CallComposite browser test snapshots

* test

* test

* Update packages/react-composites CallComposite browser test snapshots

* Update packages/react-composites CallComposite browser test snapshots

* [Call Readiness] Unsupported Browser UI (#2334)

* create new view for the composite

* Add base component and strings

* remove button

* create new story files

* add story book content and build

* fix icons

* move styles to own file

* add CC for unsupported browser

* more CC work

* Change files

* fix linter errors

* make component beta

* remove console

* fix cc error

* make supporting types interfaces

* build API

* fix cc

* rebuild api

* fix nits

* Small Refactor: move call composite side pane state handling to its own hook (#2342)

* Add instructions to update callwithchat hero sample (#2337)

* new changes based on standup discussion

* Add UI test for custom composite call control options (#2324)

* new changes based on standup discussion

* Add UI test for custom composite call control options (#2324)

* new changes based on standup discussion

* new changes based on standup discussion

* new changes based on standup discussion

* test fix

* test fix

* Update packages/react-composites CallComposite browser test snapshots

* Update packages/react-composites CallComposite browser test snapshots

* delete old snapshot'

* Update packages/react-composites CallComposite browser test snapshots

* test

* Update packages/react-composites CallComposite browser test snapshots

* Update packages/react-composites CallComposite browser test snapshots

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Anjul Garg <anjulgarg@live.com>
Co-authored-by: James Burnside <2684369+JamesBurnside@users.noreply.github.com>
Co-authored-by: Donald McEachern <94866715+dmceachernmsft@users.noreply.github.com>
Co-authored-by: Prathmesh Prabhu <82062616+prprabhu-ms@users.noreply.github.com>
carocao-msft added a commit that referenced this pull request Sep 20, 2022
* error bar

* Change files

* error bar

* error bar

* use action

* use action

* use action

* pr change

* [Call Readiness] Unsupported Browser UI (#2334)

* create new view for the composite

* Add base component and strings

* remove button

* create new story files

* add story book content and build

* fix icons

* move styles to own file

* add CC for unsupported browser

* more CC work

* Change files

* fix linter errors

* make component beta

* remove console

* fix cc error

* make supporting types interfaces

* build API

* fix cc

* rebuild api

* fix nits

* Small Refactor: move call composite side pane state handling to its own hook (#2342)

* Add instructions to update callwithchat hero sample (#2337)

* Show/hide menu button on hover/click/focus (#2319)

* show/hide menu button

* Change files

* lint fix'

* Update composite automation snapshots

* fix test

* Update composite automation snapshots

* Update composite automation snapshots

* show elipses when hovered

* Update composite automation snapshots

* Update composite automation snapshots

* change id to classname'

* Update composite automation snapshots

* Update composite automation snapshots

* new changes based on standup discussion

* Add UI test for custom composite call control options (#2324)

* Update storybook to contain docs on customizing call controls in call composite (#2333)

* snapshots

* Update packages/react-composites CallComposite browser test snapshots

* Update packages/react-composites CallComposite browser test snapshots

* test

* Update packages/react-composites CallComposite browser test snapshots

* Update packages/react-composites CallComposite browser test snapshots

* test

* test

* Update packages/react-composites CallComposite browser test snapshots

* Update packages/react-composites CallComposite browser test snapshots

* [Call Readiness] Unsupported Browser UI (#2334)

* create new view for the composite

* Add base component and strings

* remove button

* create new story files

* add story book content and build

* fix icons

* move styles to own file

* add CC for unsupported browser

* more CC work

* Change files

* fix linter errors

* make component beta

* remove console

* fix cc error

* make supporting types interfaces

* build API

* fix cc

* rebuild api

* fix nits

* Small Refactor: move call composite side pane state handling to its own hook (#2342)

* Add instructions to update callwithchat hero sample (#2337)

* new changes based on standup discussion

* Add UI test for custom composite call control options (#2324)

* new changes based on standup discussion

* Add UI test for custom composite call control options (#2324)

* new changes based on standup discussion

* new changes based on standup discussion

* new changes based on standup discussion

* test fix

* test fix

* Update packages/react-composites CallComposite browser test snapshots

* Update packages/react-composites CallComposite browser test snapshots

* delete old snapshot'

* Update packages/react-composites CallComposite browser test snapshots

* test

* Update packages/react-composites CallComposite browser test snapshots

* Update packages/react-composites CallComposite browser test snapshots

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Anjul Garg <anjulgarg@live.com>
Co-authored-by: James Burnside <2684369+JamesBurnside@users.noreply.github.com>
Co-authored-by: Donald McEachern <94866715+dmceachernmsft@users.noreply.github.com>
Co-authored-by: Prathmesh Prabhu <82062616+prprabhu-ms@users.noreply.github.com>

* error bar

* error bar

* build file

* Revert "error bar"

This reverts commit cc0c577.

* fix index

Co-authored-by: Donald McEachern <94866715+dmceachernmsft@users.noreply.github.com>
Co-authored-by: James Burnside <2684369+JamesBurnside@users.noreply.github.com>
Co-authored-by: Prathmesh Prabhu <82062616+prprabhu-ms@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Anjul Garg <anjulgarg@live.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants