summaryrefslogtreecommitdiff
path: root/spec/features/users/overview_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/users/overview_spec.rb')
-rw-r--r--spec/features/users/overview_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/features/users/overview_spec.rb b/spec/features/users/overview_spec.rb
index 0b32299459c..11f357cbaa5 100644
--- a/spec/features/users/overview_spec.rb
+++ b/spec/features/users/overview_spec.rb
@@ -38,7 +38,7 @@ describe 'Overview tab on a user profile', :js do
end
it 'does not show a link to the activity list' do
- expect(find('.tab-pane#overview .activities-block')).to have_selector('.js-view-all', visible: false)
+ expect(find('#js-overview .activities-block')).to have_selector('.js-view-all', visible: false)
end
end
@@ -50,7 +50,7 @@ describe 'Overview tab on a user profile', :js do
include_context 'visit overview tab'
it 'display 3 entries in the list of activities' do
- expect(find('.tab-pane#overview')).to have_selector('.event-item', count: 3)
+ expect(find('#js-overview')).to have_selector('.event-item', count: 3)
end
end
@@ -62,11 +62,11 @@ describe 'Overview tab on a user profile', :js do
include_context 'visit overview tab'
it 'displays 5 entries in the list of activities' do
- expect(find('.tab-pane#overview')).to have_selector('.event-item', count: 5)
+ expect(find('#js-overview')).to have_selector('.event-item', count: 5)
end
it 'shows a link to the activity list' do
- expect(find('.tab-pane#overview .activities-block')).to have_selector('.js-view-all', visible: true)
+ expect(find('#js-overview .activities-block')).to have_selector('.js-view-all', visible: true)
end
it 'links to the activity tab' do
@@ -99,7 +99,7 @@ describe 'Overview tab on a user profile', :js do
end
it 'does not show a link to the project list' do
- expect(find('.tab-pane#overview .projects-block')).to have_selector('.js-view-all', visible: false)
+ expect(find('#js-overview .projects-block')).to have_selector('.js-view-all', visible: false)
end
end
@@ -116,7 +116,7 @@ describe 'Overview tab on a user profile', :js do
end
it 'shows a link to the project list' do
- expect(find('.tab-pane#overview .projects-block')).to have_selector('.js-view-all', visible: true)
+ expect(find('#js-overview .projects-block')).to have_selector('.js-view-all', visible: true)
end
end
end