diff options
Diffstat (limited to 'spec/features/dashboard/milestones_spec.rb')
-rw-r--r-- | spec/features/dashboard/milestones_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/features/dashboard/milestones_spec.rb b/spec/features/dashboard/milestones_spec.rb index 38637115246..915626de33c 100644 --- a/spec/features/dashboard/milestones_spec.rb +++ b/spec/features/dashboard/milestones_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -RSpec.describe 'Dashboard > Milestones', feature_category: :team_planning do +RSpec.describe 'Dashboard > Milestones', :js, feature_category: :team_planning do describe 'as anonymous user' do before do visit dashboard_milestones_path @@ -14,7 +14,7 @@ RSpec.describe 'Dashboard > Milestones', feature_category: :team_planning do end describe 'as logged-in user' do - let(:user) { create(:user, :no_super_sidebar) } + let(:user) { create(:user) } let(:group) { create(:group) } let(:project) { create(:project, namespace: user.namespace) } let!(:milestone) { create(:milestone, project: project) } @@ -35,11 +35,11 @@ RSpec.describe 'Dashboard > Milestones', feature_category: :team_planning do expect(first('.milestone')).to have_content('Merge requests') end - describe 'new milestones dropdown', :js do - it 'takes user to a new milestone page', :js do + describe 'new milestones dropdown' do + it 'takes user to a new milestone page' do click_button 'Select project to create milestone' - page.within('[data-testid="new-resource-dropdown"]') do + within_testid('new-resource-dropdown') do click_button group.name click_link "New milestone in #{group.name}" end @@ -50,7 +50,7 @@ RSpec.describe 'Dashboard > Milestones', feature_category: :team_planning do end describe 'with merge requests disabled' do - let(:user) { create(:user, :no_super_sidebar) } + let(:user) { create(:user) } let(:group) { create(:group) } let(:project) { create(:project, :merge_requests_disabled, namespace: user.namespace) } let!(:milestone) { create(:milestone, project: project) } |