Sha256: 0d5d05e0728f7fe578a1adde011b58b1c2f1f79e6feb84ad34018a48d722575a

Contents?: true

Size: 843 Bytes

Versions: 4

Compression:

Stored size: 843 Bytes

Contents

class PageWithMissingAssertions
  attach Symbiont
end

class TestFactory
  include Symbiont::Factory
  attr_accessor :browser
  attr_accessor :page
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 file_field textarea select_list checkbox).each do |element|
    send element, :"#{element}", id: element

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

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
symbiont-0.10.0 spec/fixtures/page_definitions.rb
symbiont-0.9.0 spec/fixtures/page_definitions.rb
symbiont-0.8.0 spec/fixtures/page_definitions.rb
symbiont-0.7.0 spec/fixtures/page_definitions.rb