Maintenance: Fix capybara test that started failing on recent FF.
(cherry picked from commit 1af31d4f9527ff860e3dd5e769f15e0460ea0535)
This commit is contained in:
parent
927ecff993
commit
85649f8894
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue