diff options
Diffstat (limited to 'spec/features/projects/branches/user_creates_branch_spec.rb')
-rw-r--r-- | spec/features/projects/branches/user_creates_branch_spec.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/spec/features/projects/branches/user_creates_branch_spec.rb b/spec/features/projects/branches/user_creates_branch_spec.rb index bf7669e9d0c..60bd77393e9 100644 --- a/spec/features/projects/branches/user_creates_branch_spec.rb +++ b/spec/features/projects/branches/user_creates_branch_spec.rb @@ -81,11 +81,7 @@ RSpec.describe 'User creates branch', :js, feature_category: :projects do it 'does not create new branch' do invalid_branch_name = '1.0 stable' - fill_in('branch_name', with: invalid_branch_name) - page.find('body').click # defocus the branch_name input - - select_branch('master') - click_button('Create branch') + create_branch(invalid_branch_name) expect(page).to have_content('Branch name is invalid') expect(page).to have_content("can't contain spaces") |