diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-01-30 13:21:02 -0600 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-03-06 09:47:44 -0600 |
commit | 2ee86441158076344a07f2715a148a5bdbe161b0 (patch) | |
tree | 2bf1f0dc0c49b3e888e7cd8ad6875e14899f0fef /features | |
parent | 0b74ae849d3f87564e789673ecf67aa54ec7cd8a (diff) | |
download | gitlab-ce-2ee86441158076344a07f2715a148a5bdbe161b0.tar.gz |
Fixed tests, changed dispatcher routing to the 'repository:show'
Also modified the render calls to the deploy_keys and protected_branches
partials
Diffstat (limited to 'features')
-rw-r--r-- | features/project/active_tab.feature | 6 | ||||
-rw-r--r-- | features/steps/project/active_tab.rb | 10 | ||||
-rw-r--r-- | features/steps/project/deploy_keys.rb | 2 |
3 files changed, 10 insertions, 8 deletions
diff --git a/features/project/active_tab.feature b/features/project/active_tab.feature index 1dd2bdd9b36..4bdaa6266c3 100644 --- a/features/project/active_tab.feature +++ b/features/project/active_tab.feature @@ -46,10 +46,10 @@ Feature: Project Active Tab And no other sub navs should be active And the active main tab should be Settings - Scenario: On Project Settings/Deploy Keys + Scenario: On Project Settings/Repository Given I visit my project's settings page - And I click the "Deploy Keys" tab - Then the active sub nav should be Deploy Keys + And I click the "Repository" tab + Then the active sub nav should be Repository And no other sub navs should be active And the active main tab should be Settings diff --git a/features/steps/project/active_tab.rb b/features/steps/project/active_tab.rb index e842d7bec2b..218d5c6164b 100644 --- a/features/steps/project/active_tab.rb +++ b/features/steps/project/active_tab.rb @@ -31,8 +31,10 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps click_link('Integrations') end - step 'I click the "Deploy Keys" tab' do - click_link('Deploy Keys') + step 'I click the "Repository" tab' do + page.within '.layout-nav .controls' do + click_link('Repository') + end end step 'I click the "Pages" tab' do @@ -47,8 +49,8 @@ class Spinach::Features::ProjectActiveTab < Spinach::FeatureSteps ensure_active_sub_nav('Integrations') end - step 'the active sub nav should be Deploy Keys' do - ensure_active_sub_nav('Deploy Keys') + step 'the active sub nav should be Repository' do + ensure_active_sub_nav('Repository') end step 'the active sub nav should be Pages' do diff --git a/features/steps/project/deploy_keys.rb b/features/steps/project/deploy_keys.rb index edf78f62f9a..580a19494c2 100644 --- a/features/steps/project/deploy_keys.rb +++ b/features/steps/project/deploy_keys.rb @@ -36,7 +36,7 @@ class Spinach::Features::ProjectDeployKeys < Spinach::FeatureSteps end step 'I should be on deploy keys page' do - expect(current_path).to eq namespace_project_deploy_keys_path(@project.namespace, @project) + expect(current_path).to eq namespace_project_settings_repository_path(@project.namespace, @project) end step 'I should see newly created deploy key' do |