We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27c7cd6 commit 804eaceCopy full SHA for 804eace
spec/page_spec.rb
@@ -206,6 +206,7 @@
206
end
207
208
page.evaluate("console.log('hello')")
209
+ wait_a_bit
210
expect(message).to eq("hello")
211
212
spec/support/global_helpers.rb
@@ -66,4 +66,8 @@ def web_socket_debugger_url(url)
66
rescue JSON::ParserError
67
# nop
68
69
+
70
+ def wait_a_bit(duration = 0.2)
71
+ Thread.pass && sleep(duration)
72
+ end
73
0 commit comments