diff options
| author | Adriel Santiago <adriel@gitlab.com> | 2018-09-10 15:36:09 -0400 |
|---|---|---|
| committer | Adriel Santiago <adriel@gitlab.com> | 2018-09-11 21:16:43 -0400 |
| commit | 106640e031c92813803c98674e0304a91ce07db4 (patch) | |
| tree | 4bc70c7992cb0c5251002babd24d966f68cc068d /spec/features | |
| parent | 32062a9154763aedfcbdb821898b83884a1bcd2c (diff) | |
| download | gitlab-ce-106640e031c92813803c98674e0304a91ce07db4.tar.gz | |
Use GitLab ui pagination component for groups
Diffstat (limited to 'spec/features')
| -rw-r--r-- | spec/features/dashboard/groups_list_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/dashboard/groups_list_spec.rb b/spec/features/dashboard/groups_list_spec.rb index eceb12e91cd..e75c43d5338 100644 --- a/spec/features/dashboard/groups_list_spec.rb +++ b/spec/features/dashboard/groups_list_spec.rb @@ -125,7 +125,7 @@ describe 'Dashboard Groups page', :js do end it 'loads results for next page' do - expect(page).to have_selector('.gl-pagination .page', count: 2) + expect(page).to have_selector('.gl-pagination .page-item a[role=menuitemradio]', count: 2) # Check first page expect(page).to have_content(group2.full_name) @@ -134,7 +134,7 @@ describe 'Dashboard Groups page', :js do expect(page).not_to have_selector("#group-#{group.id}") # Go to next page - find(".gl-pagination .page:not(.active) a").click + find('.gl-pagination .page-item:not(.active) a[role=menuitemradio]').click wait_for_requests |
