diff options
author | Phil Hughes <me@iamphill.com> | 2017-07-28 15:26:25 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-07-28 15:29:13 +0100 |
commit | 6ec561a2f7384e6de59821fa4bcd5b63f605cb51 (patch) | |
tree | abe6f0a179f419fba89cedb2bb1a98a0b843873b /features | |
parent | f8e5941d372b9b41dc76668932920b2af3fd3c28 (diff) | |
download | gitlab-ce-6ec561a2f7384e6de59821fa4bcd5b63f605cb51.tar.gz |
fixed up specs
Diffstat (limited to 'features')
-rw-r--r-- | features/steps/project/project.rb | 16 | ||||
-rw-r--r-- | features/steps/shared/project.rb | 2 |
2 files changed, 13 insertions, 5 deletions
diff --git a/features/steps/project/project.rb b/features/steps/project/project.rb index 170e2f16c80..0a89c1baf20 100644 --- a/features/steps/project/project.rb +++ b/features/steps/project/project.rb @@ -10,7 +10,9 @@ class Spinach::Features::Project < Spinach::FeatureSteps end step 'I save project' do - click_button 'Save changes' + page.within '.general-settings' do + click_button 'Save changes' + end end step 'I should see project with new settings' do @@ -31,7 +33,9 @@ class Spinach::Features::Project < Spinach::FeatureSteps :project_avatar, File.join(Rails.root, 'spec', 'fixtures', 'banana_sample.gif') ) - click_button 'Save changes' + page.within '.general-settings' do + click_button 'Save changes' + end @project.reload end @@ -50,7 +54,9 @@ class Spinach::Features::Project < Spinach::FeatureSteps :project_avatar, File.join(Rails.root, 'spec', 'fixtures', 'banana_sample.gif') ) - click_button 'Save changes' + page.within '.general-settings' do + click_button 'Save changes' + end @project.reload end @@ -69,7 +75,9 @@ class Spinach::Features::Project < Spinach::FeatureSteps step 'change project default branch' do select 'fix', from: 'project_default_branch' - click_button 'Save changes' + page.within '.general-settings' do + click_button 'Save changes' + end end step 'I should see project default branch changed' do diff --git a/features/steps/shared/project.rb b/features/steps/shared/project.rb index da1cdd9f897..c9a63723212 100644 --- a/features/steps/shared/project.rb +++ b/features/steps/shared/project.rb @@ -103,7 +103,7 @@ module SharedProject step 'I should see project settings' do expect(current_path).to eq edit_project_path(@project) expect(page).to have_content("Project name") - expect(page).to have_content("Sharing & Permissions") + expect(page).to have_content("Sharing and permissions") end def current_project |