fix and test fix (#13050)

This commit is contained in:
Angel Garbarino 2021-11-04 11:26:29 -06:00 committed by GitHub
parent 0445b2b492
commit 74577e3a77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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"}}

View File

@ -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');