Sha256: dd0105f372ffdf13f3d918cb91bd582ed1a4523cc3474ee14bff8c4cc4cb670d

Contents?: true

Size: 463 Bytes

Versions: 26

Compression:

Stored size: 463 Bytes

Contents

require 'test_helper'

class DisconnectionTest < IT
  include CapybaraOffline

  def setup
    super
    visit '/'
    go_disconnected
  end

  def teardown
    super
    go_connected
  end

  test "should show alert about disconnection from the server" do
    page.evaluate_script "App.Env.loco.getWire().setAllowedDisconnectionTime(1);"
    msg = "You have been disconnected from the server for too long. Reload page!"
    assert page.has_content? msg
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
loco-rails-3.0.3 test/integration/disconnection_test.rb
loco-rails-2.5.3 test/integration/disconnection_test.rb
loco-rails-2.5.2 test/integration/disconnection_test.rb
loco-rails-3.0.2 test/integration/disconnection_test.rb
loco-rails-3.0.1 test/integration/disconnection_test.rb
loco-rails-2.5.1 test/integration/disconnection_test.rb
loco-rails-2.5.0 test/integration/disconnection_test.rb
loco-rails-2.4.0 test/integration/disconnection_test.rb
loco-rails-2.3.0 test/integration/disconnection_test.rb
loco-rails-3.0.0 test/integration/disconnection_test.rb
loco-rails-2.2.2 test/integration/disconnection_test.rb
loco-rails-2.2.1 test/integration/disconnection_test.rb
loco-rails-2.2.0 test/integration/disconnection_test.rb
loco-rails-2.1.0 test/integration/disconnection_test.rb
loco-rails-2.0.0 test/integration/disconnection_test.rb
loco-rails-1.5.2 test/integration/disconnection_test.rb
loco-rails-1.5.1 test/integration/disconnection_test.rb
loco-rails-1.5.0 test/integration/disconnection_test.rb
loco-rails-1.4.0 test/integration/disconnection_test.rb
loco-rails-1.3.3 test/integration/disconnection_test.rb