Sha256: 9fe7145a2be54a185d681c0322438f26c459b7437b80083d42e0df01ecc1ef90

Contents?: true

Size: 572 Bytes

Versions: 2

Compression:

Stored size: 572 Bytes

Contents

class TestWebScreen < PM::WebScreen

  title "WebScreen Test"

  # accesor for wait_change method which is testing helper
  attr_accessor :is_load_started, :is_load_finished, :is_load_failed, :is_load_failed_error

  # implementation of PM::WebScreen's hook
  def load_started
    self.is_load_started = true
  end

  def load_finished
    self.is_load_finished = true
  end

  def load_failed(error)
    puts "Load Failed: #{error.localizedDescription}"
    puts error.localizedFailureReason
    self.is_load_failed = true
    self.is_load_failed_error = error
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ProMotion-1.2.1 spec/helpers/web_screen.rb
ProMotion-1.2.0 spec/helpers/web_screen.rb