diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-10-03 11:20:18 +0100 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-10-03 11:26:37 +0100 |
commit | 5e5d5934eaff2d7254c5f57b6a5e262a37a46c6c (patch) | |
tree | 4c9d9340c26c4a504dbd75f3c1e4eea6174459b4 | |
parent | d69f0ecfd9d717ed94af0c5a748c3877c9766de9 (diff) | |
download | gitlab-ce-5e5d5934eaff2d7254c5f57b6a5e262a37a46c6c.tar.gz |
Fix broken test
-rw-r--r-- | spec/features/container_registry_spec.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/features/container_registry_spec.rb b/spec/features/container_registry_spec.rb index ffcd0f483b9..45213dc6995 100644 --- a/spec/features/container_registry_spec.rb +++ b/spec/features/container_registry_spec.rb @@ -41,16 +41,19 @@ describe "Container Registry", js: true do expect_any_instance_of(ContainerRepository) .to receive(:delete_tags!).and_return(true) - click_on 'Remove repository' + click_on(class: 'js-remove-repo') end scenario 'user removes a specific tag from container repository' do visit_container_registry + find('.js-toggle-repo').trigger('click') + wait_for_requests + expect_any_instance_of(ContainerRegistry::Tag) .to receive(:delete).and_return(true) - click_on 'Remove tag' + click_on(class: 'js-delete-registry') end end |