diff options
author | Martin Wortschack <mwortschack@gitlab.com> | 2018-10-03 18:15:32 +0200 |
---|---|---|
committer | Martin Wortschack <mwortschack@gitlab.com> | 2018-10-03 18:15:32 +0200 |
commit | f5eba5e373e275ab45502c490977f95ae20dd40c (patch) | |
tree | 9378d8c962594b2cbd66ca0c3a382facd80d8ec5 | |
parent | 1b8125edb14c8b8c266aa546d2e1f1e7f71d971a (diff) | |
download | gitlab-ce-49801-add-new-overview-tab-on-user-profile-page.tar.gz |
Fix selector in tests49801-add-new-overview-tab-on-user-profile-page
-rw-r--r-- | spec/features/users/overview_spec.rb | 12 |
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 |