diff options
author | Paul Gascou-Vaillancourt <paul.gascvail@gmail.com> | 2019-07-09 15:32:46 -0400 |
---|---|---|
committer | Paul Gascou-Vaillancourt <paul.gascvail@gmail.com> | 2019-07-09 15:52:09 -0400 |
commit | a076d1d88e48041bf59219dd0f50c15970977126 (patch) | |
tree | 4a8a07ff01e554c1f8541d635b6d059984ab06d3 /spec/javascripts | |
parent | 6e106f66ad9d692b88e90506c0b35c4281f2b600 (diff) | |
download | gitlab-ce-a076d1d88e48041bf59219dd0f50c15970977126.tar.gz |
Set unique modal IDsregistry-fix-multi-delete-modal
Diffstat (limited to 'spec/javascripts')
-rw-r--r-- | spec/javascripts/registry/components/collapsible_container_spec.js | 2 | ||||
-rw-r--r-- | spec/javascripts/registry/components/table_registry_spec.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/registry/components/collapsible_container_spec.js b/spec/javascripts/registry/components/collapsible_container_spec.js index 55017b3e26b..2a5d8dd11da 100644 --- a/spec/javascripts/registry/components/collapsible_container_spec.js +++ b/spec/javascripts/registry/components/collapsible_container_spec.js @@ -77,7 +77,7 @@ describe('collapsible registry container', () => { spyOn(vm, 'deleteItem').and.returnValue(Promise.resolve()); Vue.nextTick(() => { - document.querySelector('#confirm-repo-deletion-modal .btn-danger').click(); + document.querySelector(`#${vm.modalId} .btn-danger`).click(); expect(vm.deleteItem).toHaveBeenCalledWith(vm.repo); done(); diff --git a/spec/javascripts/registry/components/table_registry_spec.js b/spec/javascripts/registry/components/table_registry_spec.js index 6a0b16f592e..31ac970378e 100644 --- a/spec/javascripts/registry/components/table_registry_spec.js +++ b/spec/javascripts/registry/components/table_registry_spec.js @@ -51,7 +51,7 @@ describe('table registry', () => { spyOn(vm, 'deleteItem').and.returnValue(Promise.resolve()); Vue.nextTick(() => { - document.querySelector('#confirm-image-deletion-modal .btn-danger').click(); + document.querySelector(`#${vm.modalId} .btn-danger`).click(); expect(vm.deleteItem).toHaveBeenCalledWith(firstImage); expect(vm.itemToBeDeleted).toBeNull(); |