Use JavaScript driver in ballot sheet spec

With the rack driver, the `ballot_sheet.data` text was being converted
from newline characters to whitespace, while with the JavaScript driver
we get newline characters for `<br>` tags, as we expect.
This commit is contained in:
Javi Martín
2019-11-18 15:02:51 +01:00
parent 781188758a
commit 3a15bed471

View File

@@ -142,7 +142,7 @@ describe "Poll budget ballot sheets" do
set_officing_booth(booth)
end
scenario "Ballot sheet information is displayed" do
scenario "Ballot sheet information is displayed", :js do
officer_assignment = create(:poll_officer_assignment, officer: poll_officer)
ballot_sheet = create(:poll_ballot_sheet, poll: poll, officer_assignment: officer_assignment)