Sha256: 7d51643c6e00c9304c470f6ef5daf78d0f686430be1d68943929ba474c231359
Contents?: true
Size: 1.37 KB
Versions: 2
Compression:
Stored size: 1.37 KB
Contents
# frozen_string_literal: true module Capybara module ActiveAdmin module Selectors module Layout def action_items_container_selector '#titlebar_right .action_items' end def action_item_selector "#{action_items_container_selector} .action_item" end def page_title_selector '#page_title' end def flash_message_selector(type = nil) return ".flashes .flash.flash_#{type}" if type '.flashes .flash' end def footer_selector 'div.footer#footer' end def tab_header_link_selector '.tabs.ui-tabs li.ui-tabs-tab a' end def tab_content_selector '.tab-content' end def sidebar_selector '#sidebar' end def panel_selector '.panel' end def panel_title_selector 'h3' end def panel_content_selector '.panel_contents' end def batch_actions_button_selector 'div.batch_actions_selector' end def dropdown_list_selector 'ul.dropdown_menu_list' end def batch_action_selector(title) "li a[data-action='#{title}']" end def modal_dialog_selector '.active_admin_dialog' end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capybara_active_admin-0.3.1 | lib/capybara/active_admin/selectors/layout.rb |
capybara_active_admin-0.3.0 | lib/capybara/active_admin/selectors/layout.rb |