Skip to content

Commit

Permalink
Merge branch 'master' into toanzian/app-menu-show-via-props
Browse files Browse the repository at this point in the history
  • Loading branch information
corinagum authored Oct 8, 2019
2 parents ef4b405 + c53ac1d commit 71537b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [1883](https://github.com/microsoft/BotFramework-Emulator/pull/1883)
- [1902](https://github.com/microsoft/BotFramework-Emulator/pull/1902)
- [1893](https://github.com/microsoft/BotFramework-Emulator/pull/1893)
- [1916](https://github.com/microsoft/BotFramework-Emulator/pull/1916)

- [client] Fixed an issue with the transcripts path input inside of the resource settings dialog in PR [1836](https://github.com/microsoft/BotFramework-Emulator/pull/1836)
- [client] Implemented HTML app menu for Windows in PR [1893](https://github.com/microsoft/BotFramework-Emulator/pull/1893)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ describe('<ActivityWrapper />', () => {
it('adds selected class', () => {
const component = render({ isSelected: true });
expect(component.find('.selected-activity')).toHaveLength(1);
expect(component.find('.selected-activity').props()['aria-checked']).toBe(true);
});

describe('clicking on an activity', () => {
Expand Down Expand Up @@ -123,7 +124,7 @@ describe('<ActivityWrapper />', () => {
it('has the right a11y attributes', () => {
const component = render().find('.chat-activity');

expect(component.prop('role')).toEqual('button');
expect(component.prop('role')).toEqual('checkbox');
expect(component.prop('tabIndex')).toEqual(0);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,11 @@ class ActivityWrapper extends Component<ActivityWrapperProps> {
return (
<div
{...divProps}
aria-checked={isSelected}
className={classes}
onClick={this.setSelectedActivity}
onKeyDown={this.onKeyDown}
role="button"
role="checkbox"
tabIndex={0}
>
{children}
Expand Down

0 comments on commit 71537b2

Please # to comment.