From 74b957f6d9bac0beac8ef85041d02958413b55ee Mon Sep 17 00:00:00 2001 From: Jeremy Green Date: Thu, 17 Oct 2024 11:49:50 -0500 Subject: [PATCH] Change partial test to refer to 'files' not 'documents' (#1711) --- test/system/super_scaffolding/partial_test.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/system/super_scaffolding/partial_test.rb b/test/system/super_scaffolding/partial_test.rb index 17922189e..5fd1947f8 100644 --- a/test/system/super_scaffolding/partial_test.rb +++ b/test/system/super_scaffolding/partial_test.rb @@ -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) @@ -58,9 +58,9 @@ 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" @@ -68,9 +68,9 @@ def setup 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"