Skip to content

Commit c7523a6

Browse files
committed
wip
1 parent 646b6b6 commit c7523a6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/integration/record_screenshot_test.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ class RecordScreenshotTest < SystemTestCase
1111
def test_record_index
1212
visit "/"
1313

14+
sleep 0.1
1415
screenshot "index"
1516
end
1617

1718
def test_record_index_cropped
1819
visit "/"
1920

21+
sleep 0.1
2022
screenshot "index-cropped", crop: "form"
2123
end
2224

@@ -25,12 +27,14 @@ def test_record_index_as_webp
2527

2628
visit "/"
2729

30+
sleep 0.1
2831
screenshot "index-vips", screenshot_format: "webp", driver: :vips
2932
end
3033

3134
def test_record_index_with_stability
3235
visit "/"
3336

37+
sleep 0.1
3438
screenshot "index", stability_time_limit: 0.1, wait: (RUBY_ENGINE == "jruby") ? 10 : 1
3539
end
3640
end

0 commit comments

Comments
 (0)