Sha256: c18758e5224dbf057cefb8f2532c044fc01d7213a0feef6251b88a6c74f8efaf

Contents?: true

Size: 1.05 KB

Versions: 4

Compression:

Stored size: 1.05 KB

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

    # def say_hello
    #   page.execute_script "Hello, you!"
    # end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gem_suit-0.1.3 templates/static/suit/shared/test/suit_application/capybara_extensions.rb
gem_suit-0.1.2 templates/static/suit/shared/test/suit_application/capybara_extensions.rb
gem_suit-0.1.1 templates/static/suit/shared/test/suit_application/capybara_extensions.rb
gem_suit-0.1.0 templates/static/suit/shared/test/suit_application/capybara_extensions.rb