Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change partial test to refer to 'files' not 'documents' #1711

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading