diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-10-11 13:11:29 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-10-11 13:11:29 +0000 |
commit | 5a2acfe036b4ce2c74b015101c57f040b851899c (patch) | |
tree | 9a8c3ac1a736c36aa615f6332969e97a085442f0 /spec/features | |
parent | 90f95f2b8c25225bbd5601f9b8412931685d4bc0 (diff) | |
parent | be3facd9ff39e9287c257ba71501b6f09a37ea1d (diff) | |
download | gitlab-ce-5a2acfe036b4ce2c74b015101c57f040b851899c.tar.gz |
Merge branch 'rs-mysql-groups-dashboard-failure' into 'master'
Fix a feature spec failing only on MySQL
Closes #39003
See merge request gitlab-org/gitlab-ce!14811
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/dashboard/groups_list_spec.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/features/dashboard/groups_list_spec.rb b/spec/features/dashboard/groups_list_spec.rb index 533df7a325c..a6329b5c78d 100644 --- a/spec/features/dashboard/groups_list_spec.rb +++ b/spec/features/dashboard/groups_list_spec.rb @@ -1,14 +1,15 @@ require 'spec_helper' feature 'Dashboard Groups page', :js do - let!(:user) { create :user } - let!(:group) { create(:group) } - let!(:nested_group) { create(:group, :nested) } - let!(:another_group) { create(:group) } + let(:user) { create :user } + let(:group) { create(:group) } + let(:nested_group) { create(:group, :nested) } + let(:another_group) { create(:group) } it 'shows groups user is member of' do group.add_owner(user) nested_group.add_owner(user) + expect(another_group).to be_persisted sign_in(user) visit dashboard_groups_path @@ -22,6 +23,7 @@ feature 'Dashboard Groups page', :js do before do group.add_owner(user) nested_group.add_owner(user) + expect(another_group).to be_persisted sign_in(user) @@ -51,7 +53,7 @@ feature 'Dashboard Groups page', :js do end end - describe 'group with subgroups' do + describe 'group with subgroups', :nested_groups do let!(:subgroup) { create(:group, :public, parent: group) } before do @@ -90,7 +92,8 @@ feature 'Dashboard Groups page', :js do end describe 'when using pagination' do - let(:group2) { create(:group) } + let(:group) { create(:group, created_at: 5.days.ago) } + let(:group2) { create(:group, created_at: 2.days.ago) } before do group.add_owner(user) @@ -102,12 +105,9 @@ feature 'Dashboard Groups page', :js do visit dashboard_groups_path end - it 'shows pagination' do - expect(page).to have_selector('.gl-pagination') + it 'loads results for next page' do expect(page).to have_selector('.gl-pagination .page', count: 2) - end - it 'loads results for next page' do # Check first page expect(page).to have_content(group2.full_name) expect(page).to have_selector("#group-#{group2.id}") |