Remove extra check
Sometimes when updating a resource you are not redirected to the same resource, you are maybe redirected to the parent resource and the translations can be different. This condition will be checked after visiting the edit_path again.
This commit is contained in:
@@ -135,7 +135,6 @@ shared_examples "translatable" do |factory_name, path_name, input_fields, textar
|
||||
click_button update_button_text
|
||||
|
||||
expect(page).not_to have_css "#error_explanation"
|
||||
expect(page).not_to have_link "English"
|
||||
|
||||
path = updated_path_for(translatable)
|
||||
visit path
|
||||
|
||||
Reference in New Issue
Block a user