-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accessibility bug fix wave2 and websocket fix (#609)
* bug fixing wave2 * fix websocket ready state * fix issue 606
- Loading branch information
Showing
14 changed files
with
197 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
254 changes: 132 additions & 122 deletions
254
src/app/devices/deviceEvents/components/__snapshots__/commands.spec.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,141 +1,151 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`commands matches snapshot in electron 1`] = ` | ||
<StyledCommandBarBase | ||
farItems={ | ||
Array [ | ||
Object { | ||
"ariaLabel": "deviceEvents.command.close", | ||
"iconProps": Object { | ||
"iconName": "NavigateBack", | ||
<Fragment> | ||
<StyledCommandBarBase | ||
farItems={ | ||
Array [ | ||
Object { | ||
"ariaLabel": "deviceEvents.command.close", | ||
"iconProps": Object { | ||
"iconName": "NavigateBack", | ||
}, | ||
"key": "NavigateBack", | ||
"name": "deviceEvents.command.close", | ||
"onClick": [Function], | ||
}, | ||
"key": "NavigateBack", | ||
"name": "deviceEvents.command.close", | ||
"onClick": [Function], | ||
}, | ||
] | ||
} | ||
items={ | ||
Array [ | ||
Object { | ||
"ariaLabel": "deviceEvents.command.stop", | ||
"disabled": true, | ||
"iconProps": Object { | ||
"iconName": "StopSolid", | ||
] | ||
} | ||
items={ | ||
Array [ | ||
Object { | ||
"ariaLabel": "deviceEvents.command.stop", | ||
"disabled": true, | ||
"iconProps": Object { | ||
"iconName": "StopSolid", | ||
}, | ||
"key": "StopSolid", | ||
"name": "deviceEvents.command.stop", | ||
"onClick": [Function], | ||
}, | ||
"key": "StopSolid", | ||
"name": "deviceEvents.command.stop", | ||
"onClick": [Function], | ||
}, | ||
Object { | ||
"ariaLabel": "Show modeled events", | ||
"iconProps": Object { | ||
"iconName": "CheckboxComposite", | ||
Object { | ||
"ariaLabel": "Show modeled events", | ||
"iconProps": Object { | ||
"iconName": "CheckboxComposite", | ||
}, | ||
"key": "Checkbox", | ||
"name": "Show modeled events", | ||
"onClick": [Function], | ||
}, | ||
"key": "Checkbox", | ||
"name": "Show modeled events", | ||
"onClick": [Function], | ||
}, | ||
Object { | ||
"ariaLabel": "deviceEvents.command.showSystemProperties", | ||
"disabled": true, | ||
"iconProps": Object { | ||
"iconName": "CheckboxComposite", | ||
Object { | ||
"ariaLabel": "deviceEvents.command.showSystemProperties.label", | ||
"disabled": true, | ||
"iconProps": Object { | ||
"iconName": "CheckboxComposite", | ||
}, | ||
"key": "CheckboxComposite", | ||
"name": "deviceEvents.command.showSystemProperties.label", | ||
"onClick": [Function], | ||
}, | ||
"key": "CheckboxComposite", | ||
"name": "deviceEvents.command.showSystemProperties", | ||
"onClick": [Function], | ||
}, | ||
Object { | ||
"ariaLabel": "deviceEvents.command.refresh", | ||
"disabled": false, | ||
"iconProps": Object { | ||
"iconName": "Refresh", | ||
Object { | ||
"ariaLabel": "deviceEvents.command.refresh", | ||
"disabled": false, | ||
"iconProps": Object { | ||
"iconName": "Refresh", | ||
}, | ||
"key": "Refresh", | ||
"name": "deviceEvents.command.refresh", | ||
"onClick": undefined, | ||
}, | ||
"key": "Refresh", | ||
"name": "deviceEvents.command.refresh", | ||
"onClick": undefined, | ||
}, | ||
Object { | ||
"ariaLabel": "deviceEvents.command.clearEvents", | ||
"iconProps": Object { | ||
"iconName": "Delete", | ||
Object { | ||
"ariaLabel": "deviceEvents.command.clearEvents", | ||
"iconProps": Object { | ||
"iconName": "Delete", | ||
}, | ||
"key": "Clear", | ||
"name": "deviceEvents.command.clearEvents", | ||
"onClick": [Function], | ||
}, | ||
"key": "Clear", | ||
"name": "deviceEvents.command.clearEvents", | ||
"onClick": [Function], | ||
}, | ||
] | ||
} | ||
/> | ||
] | ||
} | ||
/> | ||
<StyledAnnouncedBase | ||
message="deviceEvents.command.showSystemProperties.announce.show" | ||
/> | ||
</Fragment> | ||
`; | ||
|
||
exports[`commands matches snapshot in hosted environment 1`] = ` | ||
<StyledCommandBarBase | ||
farItems={ | ||
Array [ | ||
Object { | ||
"ariaLabel": "deviceEvents.command.close", | ||
"iconProps": Object { | ||
"iconName": "NavigateBack", | ||
<Fragment> | ||
<StyledCommandBarBase | ||
farItems={ | ||
Array [ | ||
Object { | ||
"ariaLabel": "deviceEvents.command.close", | ||
"iconProps": Object { | ||
"iconName": "NavigateBack", | ||
}, | ||
"key": "NavigateBack", | ||
"name": "deviceEvents.command.close", | ||
"onClick": [Function], | ||
}, | ||
"key": "NavigateBack", | ||
"name": "deviceEvents.command.close", | ||
"onClick": [Function], | ||
}, | ||
] | ||
} | ||
items={ | ||
Array [ | ||
Object { | ||
"ariaLabel": "deviceEvents.command.start", | ||
"disabled": false, | ||
"iconProps": Object { | ||
"iconName": "Play", | ||
] | ||
} | ||
items={ | ||
Array [ | ||
Object { | ||
"ariaLabel": "deviceEvents.command.start", | ||
"disabled": false, | ||
"iconProps": Object { | ||
"iconName": "Play", | ||
}, | ||
"key": "Play", | ||
"name": "deviceEvents.command.start", | ||
"onClick": [Function], | ||
}, | ||
"key": "Play", | ||
"name": "deviceEvents.command.start", | ||
"onClick": [Function], | ||
}, | ||
Object { | ||
"ariaLabel": "Show modeled events", | ||
"iconProps": Object { | ||
"iconName": "Checkbox", | ||
Object { | ||
"ariaLabel": "Show modeled events", | ||
"iconProps": Object { | ||
"iconName": "Checkbox", | ||
}, | ||
"key": "Checkbox", | ||
"name": "Show modeled events", | ||
"onClick": [Function], | ||
}, | ||
"key": "Checkbox", | ||
"name": "Show modeled events", | ||
"onClick": [Function], | ||
}, | ||
Object { | ||
"ariaLabel": "deviceEvents.command.showSystemProperties", | ||
"disabled": false, | ||
"iconProps": Object { | ||
"iconName": "Checkbox", | ||
Object { | ||
"ariaLabel": "deviceEvents.command.showSystemProperties.label", | ||
"disabled": false, | ||
"iconProps": Object { | ||
"iconName": "Checkbox", | ||
}, | ||
"key": "CheckboxComposite", | ||
"name": "deviceEvents.command.showSystemProperties.label", | ||
"onClick": [Function], | ||
}, | ||
"key": "CheckboxComposite", | ||
"name": "deviceEvents.command.showSystemProperties", | ||
"onClick": [Function], | ||
}, | ||
Object { | ||
"ariaLabel": "deviceEvents.command.refresh", | ||
"disabled": false, | ||
"iconProps": Object { | ||
"iconName": "Refresh", | ||
Object { | ||
"ariaLabel": "deviceEvents.command.refresh", | ||
"disabled": false, | ||
"iconProps": Object { | ||
"iconName": "Refresh", | ||
}, | ||
"key": "Refresh", | ||
"name": "deviceEvents.command.refresh", | ||
"onClick": undefined, | ||
}, | ||
"key": "Refresh", | ||
"name": "deviceEvents.command.refresh", | ||
"onClick": undefined, | ||
}, | ||
Object { | ||
"ariaLabel": "deviceEvents.command.clearEvents", | ||
"iconProps": Object { | ||
"iconName": "Delete", | ||
Object { | ||
"ariaLabel": "deviceEvents.command.clearEvents", | ||
"iconProps": Object { | ||
"iconName": "Delete", | ||
}, | ||
"key": "Clear", | ||
"name": "deviceEvents.command.clearEvents", | ||
"onClick": [Function], | ||
}, | ||
"key": "Clear", | ||
"name": "deviceEvents.command.clearEvents", | ||
"onClick": [Function], | ||
}, | ||
] | ||
} | ||
/> | ||
] | ||
} | ||
/> | ||
<StyledAnnouncedBase | ||
message="deviceEvents.command.showSystemProperties.announce.hide" | ||
/> | ||
</Fragment> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.