File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
rb/spec/integration/selenium/webdriver/remote Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -52,18 +52,18 @@ module Remote
52
52
53
53
file_names = %w[ file_1.txt file_2.jpg ]
54
54
55
- expect ( driver . downloadable_files ) . to eq file_names
55
+ expect ( driver . downloadable_files ) . to match_array ( file_names )
56
56
end
57
57
end
58
58
59
59
it 'downloads a file' , exclude : { browser : :safari , reason : 'grid hangs' } do
60
- target_directory = File . join ( Dir . tmpdir , SecureRandom . uuid )
60
+ target_directory = File . join ( Dir . tmpdir . to_s , SecureRandom . uuid )
61
61
at_exit { FileUtils . rm_f ( target_directory ) }
62
62
63
63
reset_driver! ( enable_downloads : true ) do |driver |
64
64
browser_downloads ( driver )
65
65
66
- file_name = driver . downloadable_files . first
66
+ file_name = 'file_1.txt'
67
67
driver . download_file ( file_name , target_directory )
68
68
69
69
file_content = File . read ( "#{ target_directory } /#{ file_name } " ) . strip
You can’t perform that action at this time.
0 commit comments