require'spec_helper'feature'Global search',feature: truedolet(:user){create(:user)}let(:project){create(:project,namespace: user.namespace)}beforedoproject.team<<[user,:master]login_with(user)enddescribe'I search through the issues and I see pagination'dobeforedoallow_any_instance_of(Gitlab::SearchResults).toreceive(:per_page).and_return(1)create_list(:issue,2,project: project,title: 'initial')endit"has a pagination"dovisitdashboard_projects_pathfill_in"search",with: "initial"click_button"Go"select_filter("Issues")expect(page).tohave_selector('.gl-pagination .page',count: 2)endendend