Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-03-14 03:58:26 +0300
committerAlfredo Sumaran <alfredo@gitlab.com>2017-03-14 03:58:26 +0300
commitcbf1b656a464e0e544f7e559efed6851616e377f (patch)
tree2377f33dbd9301f1803101ffb78fedf2dfe35585 /spec/features/projects/environments
parent4b4e1f0455fdf4483573a23e74a33e46c6564be1 (diff)
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.rb10
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 }