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
91
91
92
92
if ENV [ "CI" ] && example . exception
93
93
session = @session || TestSessions ::Cuprite
94
- raise session . driver . browser . logger . string
95
94
save_exception_aftifacts ( session . driver . browser , example . metadata )
96
95
end
97
96
end
98
97
99
- config . after do
100
- FileUtils . rm_rf ( CUPRITE_ROOT + "/screenshots" )
101
- FileUtils . rm_rf ( CUPRITE_ROOT + "/save_path_tmp" )
102
- end
103
-
104
98
Capybara ::SpecHelper . configure ( config )
105
99
106
100
def save_exception_aftifacts ( browser , meta )
@@ -115,6 +109,6 @@ def save_exception_aftifacts(browser, meta)
115
109
116
110
log_name = "ferrum-#{ filename } -#{ line_number } -#{ timestamp } .txt"
117
111
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 ) }
119
113
end
120
114
end
You can’t perform that action at this time.
0 commit comments