Adapt specs to new translations interface markup

This commit is contained in:
Senén Rodero Rodríguez
2019-05-31 19:32:22 +02:00
parent 721710be79
commit f7417d6479
7 changed files with 22 additions and 22 deletions

View File

@@ -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

View File

@@ -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