Skip to content

Commit 4451f3e

Browse files
committed
Add some debug code to system test
1 parent f9d9999 commit 4451f3e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

spec/dummy/test/system/action_cable_subscription_test.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,17 @@ class ActionCableSubscriptionsTest < ApplicationSystemTestCase
4848
using_wait_time 30 do
4949
# Make 3 subscriptions to the same payload
5050
click_on("Subscribe with fingerprint 1")
51-
assert_selector "#fingerprint-updates-1-connected-1"
51+
52+
# Sadly this fails sometimes, and I don't understand why. The other one never fails.
53+
# Hopefully this will help debug on CI. (I can't get it to fail locally.)
54+
begin
55+
assert_selector "#fingerprint-updates-1-connected-1"
56+
rescue StandardError => err
57+
puts "#{err.class} - #{err.message}"
58+
puts page.html
59+
raise
60+
end
61+
5262
click_on("Subscribe with fingerprint 1")
5363
assert_selector "#fingerprint-updates-1-connected-2"
5464
click_on("Subscribe with fingerprint 1")

0 commit comments

Comments
 (0)