Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi committed Feb 22, 2024
1 parent 0cb6605 commit c7ee15e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/system/limit_amendments_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ def amendment_path
context "when proposal original locale is the organization locale" do
let(:creator) { create(:user, :confirmed, organization: organization, locale: "fr") }
let(:proposal) { create :proposal, users: [creator], component: component, title: { en: "Proposal in english language", machine_translations: { fr: "Proposition en langue anglaise" } } }
let(:amendment) { nil }
let(:emendation) { nil }

before do
within_language_menu do
Expand All @@ -177,7 +179,7 @@ def amendment_path
expect(page).not_to have_field(with: "Proposition en langue anglaise")
fill_in "Title", with: "New Proposal in english language"
click_button "Create"
expect(page).to have_content("Amendment draft has been created successfully.")
expect(page).to have_content("EDIT AMENDMENT DRAFT")
end

context "and is an official proposal" do
Expand Down

0 comments on commit c7ee15e

Please sign in to comment.