This commit is contained in:
Claire 2025-05-30 10:08:33 +02:00
parent 41eaf43aab
commit 092f9ccd4f
2 changed files with 13 additions and 0 deletions

View File

@ -10,4 +10,13 @@ module Rails
end
end
module Capybara
module CapybaraErrorExtensions
def message
"DEBUG: #{Time.now.utc}"
end
end
end
Rails::Engine.prepend(Rails::EngineExtensions)
Capybara::CapybaraError.prepend(Capybara::CapybaraErrorExtensions) if ENV['RAILS_ENV'] =='test'

View File

@ -21,11 +21,15 @@ RSpec.describe 'OCR', :attachment_processing, :inline_jobs, :js, :streaming do
within('.compose-form') do
attach_file('file-upload-input', file_fixture('text.png'), make_visible: true)
puts "About to click: #{Time.now.utc}"
within('.compose-form__upload') do
puts "Really about to click: #{Time.now.utc}"
click_on('Edit')
puts "Clicked! #{Time.now.utc}"
end
end
puts "About to click the second button: #{Time.now.utc}"
click_on('Add text from image')
expect(page).to have_css('#description', text: /Hello Mastodon\s*/, wait: 10)