diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-10-03 14:13:20 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-10-03 14:13:20 +0000 |
commit | f72a1bf09cce4b4cf01b7eb12da0dc78ce477a9d (patch) | |
tree | 20e0575a2397649e3ac023ab13a4800a4c6fe2b3 /spec/features/projects/environments | |
parent | c4d9f40291bc9fbdcd5f87c7a2c36c8aea85e64e (diff) | |
download | gitlab-ce-f72a1bf09cce4b4cf01b7eb12da0dc78ce477a9d.tar.gz |
Moves stages dropdown into the new vue app
Diffstat (limited to 'spec/features/projects/environments')
-rw-r--r-- | spec/features/projects/environments/environment_spec.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/spec/features/projects/environments/environment_spec.rb b/spec/features/projects/environments/environment_spec.rb index 4c5dda29fee..70e0879dd81 100644 --- a/spec/features/projects/environments/environment_spec.rb +++ b/spec/features/projects/environments/environment_spec.rb @@ -60,7 +60,7 @@ describe 'Environment' do context 'with manual action' do let(:action) do create(:ci_build, :manual, pipeline: pipeline, - name: 'deploy to production') + name: 'deploy to production', environment: environment.name) end context 'when user has ability to trigger deployment' do @@ -73,12 +73,16 @@ describe 'Environment' do expect(page).to have_link(action.name.humanize) end - it 'does allow to play manual action' do + it 'does allow to play manual action', :js do expect(action).to be_manual + find('button.dropdown').click + expect { click_link(action.name.humanize) } .not_to change { Ci::Pipeline.count } + wait_for_all_requests + expect(page).to have_content(action.name) expect(action.reload).to be_pending end @@ -165,10 +169,10 @@ describe 'Environment' do name: action.ref, project: project) end - it 'allows to stop environment' do + it 'allows to stop environment', :js do click_button('Stop') click_button('Stop environment') # confirm modal - + wait_for_all_requests expect(page).to have_content('close_app') end end |