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 | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/features/projects/branches/user_creates_branch_spec.rb b/spec/features/projects/branches/user_creates_branch_spec.rb index be236b7ca7e..60bd77393e9 100644 --- a/spec/features/projects/branches/user_creates_branch_spec.rb +++ b/spec/features/projects/branches/user_creates_branch_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -RSpec.describe 'User creates branch', :js do +RSpec.describe 'User creates branch', :js, feature_category: :projects do include Spec::Support::Helpers::Features::BranchesHelpers let_it_be(:group) { create(:group, :public) } @@ -81,11 +81,7 @@ RSpec.describe 'User creates branch', :js 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") |