Unify fill_in field in one line

This commit is contained in:
taitus
2025-05-16 12:34:01 +02:00
parent e6089c2b63
commit 88ba548343

View File

@@ -102,8 +102,7 @@ describe "Nested documentable" do
click_link "Add new document" click_link "Add new document"
within "#nested-documents" do within "#nested-documents" do
input = find("input[name$='[title]']") fill_in "Title", with: "My Title"
fill_in input[:id], with: "My Title"
attach_file "Choose document", file_fixture("empty.pdf") attach_file "Choose document", file_fixture("empty.pdf")
expect(page).to have_css ".loading-bar.complete" expect(page).to have_css ".loading-bar.complete"