diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-08-04 20:26:35 +0100 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-08-04 20:26:35 +0100 |
commit | 92902735a188a1b46dda4b737f67d8a625fca5c7 (patch) | |
tree | 0d601b657072924667918f4abc8b5cd3a18e1a0b /features | |
parent | e4f8aa719bcde767793a82103f149cd37b4ad14c (diff) | |
parent | 0b10259140a2114bfbd58a2257c32a6317394afe (diff) | |
download | gitlab-ce-92902735a188a1b46dda4b737f67d8a625fca5c7.tar.gz |
Merge branch 'master' into issue-discussions-refactor
* master:
Fix pipeline icon in contextual nav for projects
fixed up specs
trying to fix tests
fix merge conflicts
css fixes
try and fix some tests
34060 Simply general project settings to use expanded panels
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 f6edf93b311..00f7cded2ae 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 |