Skip to content

Commit

Permalink
Change partial test to refer to 'files' not 'documents'
Browse files Browse the repository at this point in the history
  • Loading branch information
jagthedrummer committed Oct 17, 2024
1 parent cd3fd24 commit a1d53fa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/system/super_scaffolding/partial_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def setup
click_on "Add New Test File"

fill_in "Name", with: "Test File Name"
assert_text("Upload New Document")
assert_text("Upload New File")
fill_in "Name", with: "Foo"
attach_file("Foo", "test/support/foo.txt", make_visible: true)
attach_file("Bars", ["test/support/foo.txt", "test/support/foo-two.txt"], make_visible: true)
Expand All @@ -58,19 +58,19 @@ def setup

click_on "Edit"

assert_text("Remove Current Document")
assert_text("Remove Current File")
within "[data-fields--file-item-id-value='#{TestFile.first.foo.id}']" do
find("span", text: "Remove Current Document").click
find("span", text: "Remove Current File").click
end
click_on "Update Test File"

assert_text("Test File was successfully updated.")
assert TestFile.first.foo.blank?

click_on "Edit"
assert_text("Remove Current Document")
assert_text("Remove Current File")
within "[data-fields--file-item-id-value='#{TestFile.first.bars.first.id}']" do
find("span", text: "Remove Current Document").click
find("span", text: "Remove Current File").click
end
click_on "Update Test File"

Expand Down

0 comments on commit a1d53fa

Please sign in to comment.