forked from fixin.me/fixin.me
Include date/time and seed in screenshot filename
This commit is contained in:
parent
c9974fce05
commit
69db87f9c6
3
config/initializers/system_test_case.rb
Normal file
3
config/initializers/system_test_case.rb
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
ActiveSupport.on_load :action_dispatch_system_test_case do
|
||||||
|
prepend CoreExt::ActionDispatch::SystemTesting::TestHelpers::CustomScreenshotHelperUniqueId
|
||||||
|
end
|
@ -0,0 +1,7 @@
|
|||||||
|
module CoreExt::ActionDispatch::SystemTesting::TestHelpers::CustomScreenshotHelperUniqueId
|
||||||
|
private
|
||||||
|
|
||||||
|
def unique
|
||||||
|
Time.current.strftime("%Y-%m-%d %H:%M:%S.%9N_#{Minitest.seed}")
|
||||||
|
end
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user