File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -91,16 +91,10 @@ module TestSessions
9191
9292 if ENV [ "CI" ] && example . exception
9393 session = @session || TestSessions ::Cuprite
94- raise session . driver . browser . logger . string
9594 save_exception_aftifacts ( session . driver . browser , example . metadata )
9695 end
9796 end
9897
99- config . after do
100- FileUtils . rm_rf ( CUPRITE_ROOT + "/screenshots" )
101- FileUtils . rm_rf ( CUPRITE_ROOT + "/save_path_tmp" )
102- end
103-
10498 Capybara ::SpecHelper . configure ( config )
10599
106100 def save_exception_aftifacts ( browser , meta )
@@ -115,6 +109,6 @@ def save_exception_aftifacts(browser, meta)
115109
116110 log_name = "ferrum-#{ filename } -#{ line_number } -#{ timestamp } .txt"
117111 log_path = "#{ ENV [ "CIRCLE_ARTIFACTS" ] } /logs/#{ log_name } "
118- File . open ( log_path , 'wb' ) { |file | file . write ( FERRUM_LOGGER . string ) }
112+ File . open ( log_path , 'wb' ) { |file | file . write ( browser . logger . string ) }
119113 end
120114end
You can’t perform that action at this time.
0 commit comments