module Capybara::ActiveAdmin::Finders::Layout
Finders
for common Active Admin components.
Public Instance Methods
within_modal_dialog() { || ... }
click to toggle source
# File lib/capybara/active_admin/finders/layout.rb, line 35 def within_modal_dialog within(modal_dialog_selector) { yield } end
within_panel(title, exact: nil) { || ... }
click to toggle source
# File lib/capybara/active_admin/finders/layout.rb, line 26 def within_panel(title, exact: nil) title_selector = "#{panel_selector} > #{panel_title_selector}" title_opts = Util.options_with_text(title, exact: exact) panel_title = find(title_selector, title_opts) panel_content = panel_title.sibling(panel_content_selector) within(panel_content) { yield } end
within_tab_body() { || ... }
click to toggle source
# File lib/capybara/active_admin/finders/layout.rb, line 13 def within_tab_body selector = tab_content_selector within(selector) { yield } end