From 81f343d77a230a7c1fa20d6668367131f1388091 Mon Sep 17 00:00:00 2001 From: Dushan Despotovic Date: Mon, 9 May 2022 15:18:49 +0100 Subject: [PATCH] update spec --- spec/features/user_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/features/user_spec.rb b/spec/features/user_spec.rb index da83101ee..c9c5492a4 100644 --- a/spec/features/user_spec.rb +++ b/spec/features/user_spec.rb @@ -553,6 +553,7 @@ RSpec.describe "User Features" do let!(:support_user) { FactoryBot.create(:user, :support) } before do + 50.times { FactoryBot.create(:organisation) } allow(SecureRandom).to receive(:random_number).and_return(otp) visit("/logs") fill_in("user[email]", with: support_user.email) @@ -567,9 +568,10 @@ RSpec.describe "User Features" do expect(page).to have_selector("h1", text: "Organisations") end - it "they should see all organisations listed in the organisations page" do + it "they should see all organisations listed in the organisations page, with pagination" do visit("/organisations") expect(page).to have_css('#all-organisations-table') + expect(page).to have_css('.app-pagination__link') end end end