Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
route committed Sep 13, 2023
1 parent 502655a commit d898044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/page/screenshot_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def create_screenshot(**options)
browser.screenshot(path: file, quality: 0) # ignored for png
browser.screenshot(path: file2) # defaults to a quality of 75
browser.screenshot(path: file3, quality: 100)
expect(File.size(file)).to be > File.size(file2) # png by default is bigger
expect(File.size(file)).to be < File.size(file2) # png by default is lighter
expect(File.size(file2)).to be < File.size(file3)
ensure
FileUtils.rm_f([file2, file3])
Expand Down

0 comments on commit d898044

Please sign in to comment.