Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/dashboard/activity_spec.rb')
-rw-r--r--spec/features/dashboard/activity_spec.rb12
1 files changed, 9 insertions, 3 deletions
diff --git a/spec/features/dashboard/activity_spec.rb b/spec/features/dashboard/activity_spec.rb
index edb3dacc2cc..2f9b7bb7e0f 100644
--- a/spec/features/dashboard/activity_spec.rb
+++ b/spec/features/dashboard/activity_spec.rb
@@ -2,7 +2,7 @@
require 'spec_helper'
-RSpec.describe 'Dashboard > Activity', feature_category: :users do
+RSpec.describe 'Dashboard > Activity', feature_category: :user_profile do
let(:user) { create(:user) }
before do
@@ -12,9 +12,15 @@ RSpec.describe 'Dashboard > Activity', feature_category: :users do
it_behaves_like 'a dashboard page with sidebar', :activity_dashboard_path, :activity
context 'tabs' do
- it 'shows Your Projects' do
+ it 'shows Your Activity' do
visit activity_dashboard_path
+ expect(find('[data-testid="dashboard-activity-tabs"] a.active')).to have_content('Your activity')
+ end
+
+ it 'shows Your Projects' do
+ visit activity_dashboard_path(filter: 'projects')
+
expect(find('[data-testid="dashboard-activity-tabs"] a.active')).to have_content('Your projects')
end
@@ -24,7 +30,7 @@ RSpec.describe 'Dashboard > Activity', feature_category: :users do
expect(find('[data-testid="dashboard-activity-tabs"] a.active')).to have_content('Starred projects')
end
- it 'shows Followed Projects' do
+ it 'shows Followed Users' do
visit activity_dashboard_path(filter: 'followed')
expect(find('[data-testid="dashboard-activity-tabs"] a.active')).to have_content('Followed users')