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:
authorFilipa Lacerda <filipa@gitlab.com>2017-02-15 19:36:13 +0300
committerFilipa Lacerda <filipa@gitlab.com>2017-02-15 22:04:55 +0300
commitb29f6c5176b699de2f6efb012f9646e0d3243727 (patch)
tree614ec368b0cd548064ff4f29b64d29532a84d83c /spec/features/projects/pipelines/pipelines_spec.rb
parent87f4767e604a556291c531f8889b654d824245aa (diff)
Use `page` query parameter instead of `p` to keep consistency with all URLs
Fix rubocop error
Diffstat (limited to 'spec/features/projects/pipelines/pipelines_spec.rb')
-rw-r--r--spec/features/projects/pipelines/pipelines_spec.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/spec/features/projects/pipelines/pipelines_spec.rb b/spec/features/projects/pipelines/pipelines_spec.rb
index 6555b2fc6c1..5c896a051a4 100644
--- a/spec/features/projects/pipelines/pipelines_spec.rb
+++ b/spec/features/projects/pipelines/pipelines_spec.rb
@@ -277,6 +277,28 @@ describe 'Pipelines', :feature, :js do
end
end
end
+
+ context 'with pagination' do
+ before do
+ create_list(:ci_empty_pipeline, 40, project: project)
+ end
+
+ it 'should render pagination' do
+ visit namespace_project_pipelines_path(project.namespace, project)
+ wait_for_vue_resource
+
+ expect(page).to have_css('.gl-pagination')
+ expect(page.find_all('tbody tr').length).to eq(20)
+ end
+
+ it "should render second page of pipelines" do
+ visit namespace_project_pipelines_path(project.namespace, project, page: '2')
+ wait_for_vue_resource
+
+ expect(page).to have_css('.gl-pagination')
+ expect(page.find_all('tbody tr').length).to eq(20)
+ end
+ end
end
describe 'POST /:project/pipelines' do