Use labels in language selector tests
This way the test verifies there's a label associated to that form field.
This commit is contained in:
@@ -161,7 +161,7 @@ describe "Admin poll questions", :admin do
|
||||
|
||||
expect(page).to have_select("poll_question_poll_id", options: ["Select Poll", poll.name_en])
|
||||
|
||||
select("Español", from: "locale-switcher")
|
||||
select "Español", from: "Language:"
|
||||
|
||||
expect(page).to have_select("poll_question_poll_id",
|
||||
options: ["Seleccionar votación", poll.name_es])
|
||||
@@ -180,7 +180,7 @@ describe "Admin poll questions", :admin do
|
||||
|
||||
expect(page).to have_select("poll_question_poll_id", options: ["Select Poll", poll.name_en])
|
||||
|
||||
select("Français", from: "locale-switcher")
|
||||
select "Français", from: "Language:"
|
||||
|
||||
expect(page).to have_select("poll_question_poll_id",
|
||||
options: ["Sélectionner un vote", poll.name_es])
|
||||
|
||||
Reference in New Issue
Block a user