Sha256: 4502aa619195d694187a56dad4aea9a05d77e00f232b1b0e94e334a61afa1c71

Contents?: true

Size: 280 Bytes

Versions: 7

Compression:

Stored size: 280 Bytes

Contents

module BaseFeatureHelper
  def click_nav(nav_text, subnav_text=nil)
    primary_nav = find(".admin-nav-menu>ul>li>a", text: %r{#{nav_text}}i)
    if subnav_text
      primary_nav.find('+ul>li>a', text: %r{#{subnav_text}}i).click
    else
      primary_nav.click
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_backend-1.2.3 spec/support/feature/base_feature_helper.rb
solidus_backend-1.2.2 spec/support/feature/base_feature_helper.rb
solidus_backend-1.2.1 spec/support/feature/base_feature_helper.rb
solidus_backend-1.2.0 spec/support/feature/base_feature_helper.rb
solidus_backend-1.2.0.rc2 spec/support/feature/base_feature_helper.rb
solidus_backend-1.2.0.rc1 spec/support/feature/base_feature_helper.rb
solidus_backend-1.2.0.beta1 spec/support/feature/base_feature_helper.rb