diff --git a/spec/system/nested_documentable_spec.rb b/spec/system/nested_documentable_spec.rb index 1db647358..975ce3d61 100644 --- a/spec/system/nested_documentable_spec.rb +++ b/spec/system/nested_documentable_spec.rb @@ -102,8 +102,7 @@ describe "Nested documentable" do click_link "Add new document" within "#nested-documents" do - input = find("input[name$='[title]']") - fill_in input[:id], with: "My Title" + fill_in "Title", with: "My Title" attach_file "Choose document", file_fixture("empty.pdf") expect(page).to have_css ".loading-bar.complete"