diff options
Diffstat (limited to 'spec/features/admin/admin_groups_spec.rb')
-rw-r--r-- | spec/features/admin/admin_groups_spec.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/spec/features/admin/admin_groups_spec.rb b/spec/features/admin/admin_groups_spec.rb index 90dde7340d5..2d541a34f62 100644 --- a/spec/features/admin/admin_groups_spec.rb +++ b/spec/features/admin/admin_groups_spec.rb @@ -28,7 +28,7 @@ RSpec.describe 'Admin Groups' do end end - describe 'create a group' do + describe 'create a group', :js do describe 'with expected fields' do it 'renders from as expected', :aggregate_failures do visit new_admin_group_path @@ -60,8 +60,7 @@ RSpec.describe 'Admin Groups' do expect(page).to have_current_path admin_group_path(Group.find_by(path: path_component)), ignore_query: true content = page.find('#content-body') - h3_texts = content.all('h3').collect(&:text).join("\n") - expect(h3_texts).to match group_name + expect(page).to have_content group_name li_texts = content.all('li').collect(&:text).join("\n") expect(li_texts).to match group_name expect(li_texts).to match path_component @@ -76,7 +75,7 @@ RSpec.describe 'Admin Groups' do expect_selected_visibility(internal) end - it 'when entered in group name, it auto filled the group path', :js do + it 'when entered in group name, it auto filled the group path' do visit admin_groups_path click_link "New group" group_name = 'gitlab' @@ -85,7 +84,7 @@ RSpec.describe 'Admin Groups' do expect(path_field.value).to eq group_name end - it 'auto populates the group path with the group name', :js do + it 'auto populates the group path with the group name' do visit admin_groups_path click_link "New group" group_name = 'my gitlab project' @@ -94,7 +93,7 @@ RSpec.describe 'Admin Groups' do expect(path_field.value).to eq 'my-gitlab-project' end - it 'when entering in group path, group name does not change anymore', :js do + it 'when entering in group path, group name does not change anymore' do visit admin_groups_path click_link "New group" group_path = 'my-gitlab-project' |