Metadata
Description
Currently, we hide the "Connect to Dash" control when Bluetooth isn't available.
Comments
-
Simon Bates commented
2019-12-09T10:23:57.521-0500 I've merged https://github.com/codelearncreate/c2lc-coding-environment/pull/7 but let's add a test for DeviceConnectControl before we close this task.
Please add a test of similar structure to CommandPaletteCommand.test.js, testing the following:
- When the disabled prop is true, the Button is disabled and the component has class "DeviceConnectControl--disabled"
- When the disabled prop is false, the Button is not disabled and the component does not have the class "DeviceConnectControl--disabled"
- For each value of the connectionStatus prop, the expected icon is rendered with the expected aria-label
- The children passed to the component are rendered
Thanks.