mirror of
https://github.com/mastodon/mastodon.git
synced 2025-07-15 08:48:15 +00:00
Bleh
This commit is contained in:
parent
41eaf43aab
commit
092f9ccd4f
|
@ -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'
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user