diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-03-14 00:58:26 +0000 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-03-14 00:58:26 +0000 |
commit | cbf1b656a464e0e544f7e559efed6851616e377f (patch) | |
tree | 2377f33dbd9301f1803101ffb78fedf2dfe35585 /spec/features/projects/environments | |
parent | 4b4e1f0455fdf4483573a23e74a33e46c6564be1 (diff) | |
download | gitlab-ce-cbf1b656a464e0e544f7e559efed6851616e377f.tar.gz |
Use a button and a post request instead of UJS links - part 1 - Environments
Diffstat (limited to 'spec/features/projects/environments')
-rw-r--r-- | spec/features/projects/environments/environments_spec.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/spec/features/projects/environments/environments_spec.rb b/spec/features/projects/environments/environments_spec.rb index 25f31b423b8..641e2cf7402 100644 --- a/spec/features/projects/environments/environments_spec.rb +++ b/spec/features/projects/environments/environments_spec.rb @@ -111,10 +111,8 @@ feature 'Environments page', :feature, :js do find('.js-dropdown-play-icon-container').click expect(page).to have_content(action.name.humanize) - expect { click_link(action.name.humanize) } + expect { find('.js-manual-action-link').click } .not_to change { Ci::Pipeline.count } - - expect(action.reload).to be_pending end scenario 'does show build name and id' do @@ -158,12 +156,6 @@ feature 'Environments page', :feature, :js do expect(page).to have_selector('.stop-env-link') end - scenario 'starts build when stop button clicked' do - find('.stop-env-link').click - - expect(page).to have_content('close_app') - end - context 'for reporter' do let(:role) { :reporter } |