feature_helpers.rb 361 B

12345678910
  1. module FeatureHelpers
  2. def select_agent_type(search)
  3. agent_name = search[/\A.*?Agent\b/] || search
  4. select2(agent_name, search:, from: "Type")
  5. # Wait for all parts of the Agent form to load:
  6. expect(page).to have_css("div.function_buttons") # Options editor
  7. expect(page).to have_css(".well.description > p") # Markdown description
  8. end
  9. end