Skip to content

Commit 6fa507b

Browse files
committed
Add a sleep before checking for the error message
1 parent ef48ca8 commit 6fa507b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spec/features/shared/examples.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@
4343
shared_examples "Validation errors displaying" do
4444
context "when the new comment is submitted with blank fields", blank_form_submitted: true do
4545
scenario "validation errors displayed" do
46+
puts "ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ"
47+
puts "examples.rb: #{__LINE__}, method: #{__method__}"
48+
puts "triggering sleep 1"
49+
puts "ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ"
50+
sleep 1
51+
puts "ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ"
52+
puts "After sleep 1"
53+
puts "ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ"
54+
4655
expect(page).to have_content("Your comment was not saved!")
4756
expect(page).to have_content("Author: can't be blank")
4857
expect(page).to have_content("Text: can't be blank")

0 commit comments

Comments
 (0)