Add sleep to work around non-deterministic failure in can_login_test
Add sleep to work around non-deterministic failure in can_login_test

  Testing in 'rake' fails non-deterministically in can_login_test because
  it can't find an id.  This only happens when the system runs 'rake'
  as a whole (not just 'rake test', even though it's inside 'rake test'
  when it fails), and it's non-deterministic (which are nasty
  to track down).

  Insert a "sleep" to solve the problem - this gives Capybara
  time to find it the value.
  This a hack, but increasing the delay time does *not* always work.
  It may be a threading issue.  The underlying problem seems to be in the
  testing process, not the actual program being tested, so this will do.

Signed-off-by: David A. Wheeler <9ae72d22d8b894b865a7a496af4fab6320e6abb2@dwheeler.com>

linuxfoundation/cii-best-practices-badge,wanganyv/cii-best-practices-badge,taylorcoursey/cii-best-practices-badge,coreinfrastructure/best-practices-badge,dwvisser/cii-best-practices-badge,taylorcoursey/cii-best-practices-badge,yannickmoy/cii-best-practices-badge,wanganyv/cii-best-practices-badge,dwvisser/cii-best-practices-badge,jdossett/cii-best-practices-badge,jdossett/cii-best-practices-badge,dwvisser/cii-best-practices-badge,wanganyv/cii-best-practices-badge,linuxfoundation/cii-best-practices-badge,yannickmoy/cii-best-practices-badge,taylorcoursey/cii-best-practices-badge,linuxfoundation/cii-best-practices-badge,dwvisser/cii-best-practices-badge,yannickmoy/cii-best-practices-badge,coreinfrastructure/best-practices-badge,yannickmoy/cii-best-practices-badge,jdossett/cii-best-practices-badge,coreinfrastructure/best-practices-badge,jdossett/cii-best-practices-badge,coreinfrastructure/best-practices-badge,taylorcoursey/cii-best-practices-badge,linuxfoundation/cii-best-practices-badge,wanganyv/cii-best-practices-badge