mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Ui/toggle component (#8610)
* Toggle UI component, storybook, and tests * Update secret-edit template with new Toggle
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user