Rename HTML attributes referencing poll options

Since now poll question answers have been renamed to poll question
options, using HTML IDs, classes and data attributes named `answer` was
confusing.
This commit is contained in:
Javi Martín
2024-06-13 14:48:03 +02:00
parent 8997ed316c
commit 5fa6db2226
31 changed files with 58 additions and 58 deletions

View File

@@ -11,8 +11,8 @@ describe Polls::Questions::QuestionComponent do
poll_question = page.find("#poll_question_#{question.id}")
expect(poll_question).to have_content("Read more about")
expect(poll_question).to have_link("Answer A", href: "#answer_#{option_a.id}")
expect(poll_question).to have_link("Answer B", href: "#answer_#{option_b.id}")
expect(poll_question).to have_link("Answer A", href: "#option_#{option_a.id}")
expect(poll_question).to have_link("Answer B", href: "#option_#{option_b.id}")
expect(poll_question).to have_content("Answer A, Answer B")
end
end