Adapt specs to new translations interface markup
This commit is contained in:
@@ -63,7 +63,7 @@ describe "Admin legislation draft versions" do
|
||||
fill_in "Changes", with: "Version 3 changes"
|
||||
fill_in "Text", with: "Version 3 body"
|
||||
|
||||
within(".end") do
|
||||
within("form .end") do
|
||||
click_button "Create version"
|
||||
end
|
||||
|
||||
|
||||
@@ -173,7 +173,7 @@ describe "Admin legislation questions" do
|
||||
|
||||
find("#nested_question_options input").set("Option 1")
|
||||
|
||||
click_link "Español"
|
||||
select "Español", from: :select_language
|
||||
|
||||
find("#nested_question_options input").set("Opción 1")
|
||||
|
||||
@@ -182,7 +182,7 @@ describe "Admin legislation questions" do
|
||||
|
||||
expect(page).to have_field(field_en[:id], with: "Option 1")
|
||||
|
||||
click_link "Español"
|
||||
select "Español", from: :select_language
|
||||
|
||||
expect(page).to have_field(field_es[:id], with: "Opción 1")
|
||||
end
|
||||
@@ -190,13 +190,13 @@ describe "Admin legislation questions" do
|
||||
scenario "Add new question option after changing active locale", :js do
|
||||
visit edit_question_url
|
||||
|
||||
click_link "Español"
|
||||
select "Español", from: :select_language
|
||||
|
||||
click_on "Add option"
|
||||
|
||||
find("#nested_question_options input").set("Opción 1")
|
||||
|
||||
click_link "English"
|
||||
select "English", from: :select_language
|
||||
|
||||
find("#nested_question_options input").set("Option 1")
|
||||
|
||||
@@ -206,7 +206,7 @@ describe "Admin legislation questions" do
|
||||
|
||||
expect(page).to have_field(field_en[:id], with: "Option 1")
|
||||
|
||||
click_link "Español"
|
||||
select "Español", from: :select_language
|
||||
|
||||
expect(page).to have_field(field_es[:id], with: "Opción 1")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user