Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrlpz committed Jul 29, 2024
1 parent 95a3075 commit 3360427
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions spec/system/assemblies_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
require "rails_helper"

describe "Assemblies" do
let(:organization) { create(:organization) }
let(:organization) do
create(
:organization,
name: "Ajuntament",
default_locale: :ca,
available_locales: [:es, :ca]
)
end

before do
switch_to_host(organization.host)
Expand All @@ -20,7 +27,7 @@

it "lists 20 assemblies per page" do
within "#assemblies-grid" do
expect(page).to have_content("Results per page:\n20")
expect(page).to have_content("Resultats per pàgina:\n20")
expect(page).to have_css("[id^=assembly_]", count: 20)
end
end
Expand Down

0 comments on commit 3360427

Please sign in to comment.