fix and test fix (#13050)
This commit is contained in:
parent
0445b2b492
commit
74577e3a77
|
@ -27,7 +27,7 @@
|
|||
<button
|
||||
type="button"
|
||||
class="toolbar-link"
|
||||
{{on "click" (fn (mut this.showDeleteModal) false)}}
|
||||
{{on "click" (fn (mut this.showDeleteModal) true)}}
|
||||
data-test-delete-open-modal
|
||||
>
|
||||
{{if (and (not @modelForData.deleted) (not @modelForData.destroyed)) "Delete" "Destroy"}}
|
||||
|
|
|
@ -641,6 +641,7 @@ module('Acceptance | secrets/secret/create', function(hooks) {
|
|||
await settled();
|
||||
await click('[data-test-delete-open-modal]');
|
||||
await settled();
|
||||
assert.dom('.modal.is-active').exists('Modal appears');
|
||||
assert.dom('[data-test-delete-modal="destroy-all-versions"]').exists(); // we have a if Ember.testing catch in the delete action because it breaks things in testing
|
||||
// we can however destroy the versions
|
||||
await click('#destroy-all-versions');
|
||||
|
|
Loading…
Reference in New Issue