File tree 3 files changed +11
-9
lines changed
3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 43
43
shared_examples "Validation errors displaying" do
44
44
context "when the new comment is submitted with blank fields" , blank_form_submitted : true do
45
45
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"
46
+ # Sleeping is CRITICAL to this test not crashing on Travis
47
+ # See builds here:
48
+ # https://travis-ci.org/shakacode/react-webpack-rails-tutorial/builds/178794772
49
+ # sleep 1
54
50
55
51
expect ( page ) . to have_content ( "Your comment was not saved!" )
56
52
expect ( page ) . to have_content ( "Author: can't be blank" )
Original file line number Diff line number Diff line change 41
41
# Maybe selenium_firefox webdriver only works for Travis-CI builds.
42
42
# 2016-03-06: Phantomjs, all options fails on MacOs
43
43
# Same for webkit
44
- default_driver = :poltergeist # :selenium_chrome
44
+ # default_driver = :poltergeist
45
+ default_driver = :poltergeist_no_animations # :selenium_chrome
45
46
46
47
supported_drivers = %i( poltergeist poltergeist_errors_ok
47
48
poltergeist_no_animations webkit
56
57
when :poltergeist , :poltergeist_errors_ok , :poltergeist_no_animations
57
58
require "capybara/poltergeist"
58
59
opts = {
60
+ # Leaving animations off, as a sleep was still needed.
59
61
extensions : [ "#{ Rails . root } /spec/support/phantomjs-disable-animations.js" ] ,
60
62
window_size : [ 1280 , 720 ] ,
61
63
screen_size : [ 1600 , 1200 ]
Original file line number Diff line number Diff line change 1
1
// https://gist.github.com/andyjbas/9962218
2
2
// disable_animations.js
3
+
4
+ // No idea which of these is more helpful.
5
+ // They both resulted in crashes:
6
+ // https://travis-ci.org/shakacode/react-webpack-rails-tutorial/builds/178794772
3
7
// var disableAnimationStyles = '-webkit-transition: none !important;' +
4
8
// '-moz-transition: none !important;' +
5
9
// '-ms-transition: none !important;' +
You can’t perform that action at this time.
0 commit comments