Ui/toggle component (#8610)

* Toggle UI component, storybook, and tests

* Update secret-edit template with new Toggle
This commit is contained in:
Chelsea Shaw
2020-03-24 13:47:56 -05:00
committed by GitHub
parent 1de3280409
commit fe02d182cf
10 changed files with 288 additions and 14 deletions

View File

@@ -35,7 +35,7 @@ module('Integration | Component | secret edit', function(hooks) {
});
await render(hbs`{{secret-edit mode=mode model=model }}`);
assert.dom('[data-test-secret-json-toggle]').isDisabled();
assert.dom('[data-test-toggle-input="json"]').isDisabled();
});
test('it does JSON toggle in show mode when showing string data', async function(assert) {
@@ -49,7 +49,7 @@ module('Integration | Component | secret edit', function(hooks) {
});
await render(hbs`{{secret-edit mode=mode model=model }}`);
assert.dom('[data-test-secret-json-toggle]').isNotDisabled();
assert.dom('[data-test-toggle-input="json"]').isNotDisabled();
});
test('it shows an error when creating and data is not an object', async function(assert) {