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
path: root/spec
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-02-07 18:00:44 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2017-02-07 18:00:44 +0300
commit0886b0fe98c640579fa1e4e88a28c9a62b866f2a (patch)
tree6e09114e7957ec6dba621d5a0f2414fde3a7e5e9 /spec
parentbc66944248bf62816f830b5769449c2c3a9dbd04 (diff)
Fix stop action
Diffstat (limited to 'spec')
-rw-r--r--spec/features/environments_spec.rb16
1 files changed, 3 insertions, 13 deletions
diff --git a/spec/features/environments_spec.rb b/spec/features/environments_spec.rb
index 010186d77fa..78be7d36f47 100644
--- a/spec/features/environments_spec.rb
+++ b/spec/features/environments_spec.rb
@@ -56,10 +56,8 @@ feature 'Environments page', :feature, :js do
context 'for available environment' do
given(:environment) { create(:environment, project: project, state: :available) }
- scenario 'does allow to stop environment' do
- click_link('Stop')
-
- expect(page).to have_content(environment.name.titleize)
+ scenario 'does not shows stop button' do
+ expect(page).not_to have_selector('.stop-env-link')
end
end
@@ -67,7 +65,7 @@ feature 'Environments page', :feature, :js do
given(:environment) { create(:environment, project: project, state: :stopped) }
scenario 'does not shows stop button' do
- expect(page).not_to have_link('Stop')
+ expect(page).not_to have_selector('.stop-env-link')
end
end
end
@@ -186,14 +184,6 @@ feature 'Environments page', :feature, :js do
expect(page).not_to have_terminal_button
end
end
-
- context 'whitout stop action' do
- scenario 'does allow to stop environment' do
- click_link('Stop')
-
- expect(page).to have_content(environment.name.capitalize)
- end
- end
end
end
end