Sha256: f1429bea3e1079d83159738386a0b4bb28815a4b6e80967e77c7dd84e33dec4b

Contents?: true

Size: 799 Bytes

Versions: 2

Compression:

Stored size: 799 Bytes

Contents

class PageWithMissingAssertions
  attach Symbiont
end

class TestFactory
  include Symbiont::Factory
  attr_accessor :driver
  attr_accessor :active
end

class ValidPageNewContext
  attach Symbiont
end

class ValidPage
  attach Symbiont
  
  url_is 'http://localhost:9292'
  url_matches /:\d{4}/
  title_is 'Dialogic'

  %w(text_field button).each do |element|
    send element, :"#{element}", id: element

    send element, :"#{element}_proc", proc { driver.send(element, id: element) }
    send element, :"#{element}_lambda", -> { driver.send(element, id: element) }

    send element, :"#{element}_block" do
      driver.send(element, id: element)
    end

    send element, :"#{element}_block_arg" do |id|
      driver.send(element, id: id)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
symbiont-0.4.0 spec/fixtures/page_definitions.rb
symbiont-0.3.0 spec/fixtures/page_definitions.rb