remove request helper

This commit is contained in:
Pete Matsyburka
2025-05-14 13:11:12 +03:00
parent 2dca7d8a8e
commit 0122a237e3
3 changed files with 6 additions and 45 deletions
+6 -6
View File
@@ -21,14 +21,14 @@ RSpec.describe 'Template Builder' do
doc.click
expect do
wait_for_fetch do
doc.find('.replace-document-button').click
doc.find('.replace-document-button input[type="file"]', visible: false)
.attach_file(Rails.root.join('spec/fixtures/sample-image.png'))
end
doc.find('.replace-document-button').click
doc.find('.replace-document-button input[type="file"]', visible: false)
.attach_file(Rails.root.join('spec/fixtures/sample-image.png'))
page.driver.wait_for_network_idle
end.to change { template.documents.count }.by(1)
expect(template.reload['schema'][1]['name']).to eq('sample-image')
expect(page).to have_content('sample-image')
end
end
end