Sha256: dbb92aa2c5a8be8933014f24e0a9c6a0e9841e07e2277bcca5fcd5e4c239ff3d

Contents?: true

Size: 1003 Bytes

Versions: 3

Compression:

Stored size: 1003 Bytes

Contents

module GemSuit
  class IntegrationTest

    # def login
    #   visit "/login"
    #   fill_in_and_submit "form#login", {:Email => "paul.engel@holder.nl", :Password => "test"}, "Login"
    # end

    # def logout
    #   find("a#logout").click_link "Logout"
    # end

    # def fill_in_and_submit(selector, with, submit)
    #   within "#{selector} fieldset.inputs" do
    #     with.each do |key, value|
    #       begin
    #         fill_in key.to_s, :with => value
    #       rescue Selenium::WebDriver::Error::ElementNotDisplayedError
    #         page.execute_script "var input = $('#{selector} [name=\"#{key}\"]');" +
    #                             "if (input.data('cleditor')) {" +
    #                             "  input.val('#{value}');" +
    #                             "  input.data('cleditor').updateFrame();" +
    #                             "}"
    #       end
    #     end
    #   end
    #   find(selector).find_button(submit).click
    #   sleep 2
    # end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rich_support-0.1.2 suit/shared/test/suit_application/capybara_extensions.rb
rich_support-0.1.1 suit/shared/test/suit_application/capybara_extensions.rb
rich_support-0.1.0 suit/shared/test/suit_application/capybara_extensions.rb