|
|
@ -553,7 +553,7 @@ RSpec.describe "User Features" do |
|
|
|
let!(:support_user) { FactoryBot.create(:user, :support) } |
|
|
|
let!(:support_user) { FactoryBot.create(:user, :support) } |
|
|
|
|
|
|
|
|
|
|
|
before do |
|
|
|
before do |
|
|
|
50.times { FactoryBot.create(:organisation) } |
|
|
|
FactoryBot.create_list(:organisation, 50) |
|
|
|
allow(SecureRandom).to receive(:random_number).and_return(otp) |
|
|
|
allow(SecureRandom).to receive(:random_number).and_return(otp) |
|
|
|
visit("/logs") |
|
|
|
visit("/logs") |
|
|
|
fill_in("user[email]", with: support_user.email) |
|
|
|
fill_in("user[email]", with: support_user.email) |
|
|
@ -570,8 +570,8 @@ RSpec.describe "User Features" do |
|
|
|
|
|
|
|
|
|
|
|
it "they should see all organisations listed in the organisations page, with pagination" do |
|
|
|
it "they should see all organisations listed in the organisations page, with pagination" do |
|
|
|
visit("/organisations") |
|
|
|
visit("/organisations") |
|
|
|
expect(page).to have_css('#all-organisations-table') |
|
|
|
expect(page).to have_css("#all-organisations-table") |
|
|
|
expect(page).to have_css('.app-pagination__link') |
|
|
|
expect(page).to have_css(".app-pagination__link") |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|