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

Send postBack and messageBack even if text/value is empty #3120

Merged
merged 2 commits into from
Apr 21, 2020

Conversation

compulim
Copy link
Contributor

@compulim compulim commented Apr 21, 2020

Fixes #2876.

Changelog Entry

Fixed

  • Fixes #2876. messageBack and postBack should send even if both text and value is falsy or undefined, by @compulim in PR #3120

Description

When both text and value are not specified, we should continue to send it via postBack or messageBack.

Spec at https://github.com/microsoft/botframework-sdk/blob/master/specs/botframework-activity/botframework-activity.md#message-back.

The spec only list messageBack, I think postBack should follow as well.

Specific Changes

  • When postBack, we should continue to send if value is falsy
  • When messageBack, we should continue to send if both text and value is falsy
  • Moved "hero card actions" test from Web Driver to HTML
    • Also added 2 test cases

  • Testing Added

@compulim compulim requested a review from beyackle April 21, 2020 08:19
Copy link
Contributor

@beyackle beyackle left a comment

Choose a reason for hiding this comment

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

LGTM

@beyackle beyackle merged commit e52e5a7 into microsoft:master Apr 21, 2020
@compulim compulim mentioned this pull request May 15, 2020
34 tasks
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.

Investigate: clicking on hero card throw 'displayText' of undefined error
2 participants