mojotech / capybara-ui

Roles and page objects for Capybara integration testing - Formerly called Dill

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add #activate DSL method

david opened this issue · comments

  • Declare a default widget action

    class SomeAction < Dill::Widget
      root <root>
      activates_with <action type: :click or :hover>
    end
  • Use the dsl

    activate :some_action
  • Activate should return another widget (or the same) (?)