C2LC-91: When Bluetooth isn't available show the "Connect to Dash" control, but disabled

Metadata

Source
C2LC-91
Type
Sub-task
Priority
N/A
Status
Done
Resolution
N/A
Assignee
Daniel Cho
Reporter
Created
2019-11-29T14:51:01.168-0500
Updated
2020-01-08T09:50:36.408-0500
Versions
N/A
Fixed Versions
  1. Coding Env 0.1
Component
N/A

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.