Maintenance: Fix capybara test that started failing on recent FF.

(cherry picked from commit 1af31d4f9527ff860e3dd5e769f15e0460ea0535)
This commit is contained in:
Martin Gruner 2022-06-10 06:33:16 +02:00
parent 927ecff993
commit 85649f8894

View file

@ -365,10 +365,16 @@ RSpec.describe 'Ticket > Update > Full Quote Header', current_user_id: -> { curr
end
def timestamp_reply
format_string = if Capybara.current_driver == :zammad_firefox
'%A, %B %1d, %Y at %1I:%M:%S %p'
else
'%A, %B %1d, %Y, %1I:%M:%S %p'
end
expected
.created_at
.in_time_zone('Europe/London')
.strftime('%A, %B %1d, %Y, %1I:%M:%S %p')
.strftime(format_string)
end
def timestamp_forward