Sha256: 879a0da314eb6c86b0cd24aa4ab37c2d8e05fe360c2b523de5f177c59f1ed5c4

Contents?: true

Size: 278 Bytes

Versions: 43

Compression:

Stored size: 278 Bytes

Contents

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

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
solidus_backend-2.5.2 spec/support/feature/base_feature_helper.rb
solidus_backend-2.5.1 spec/support/feature/base_feature_helper.rb
solidus_backend-2.5.0 spec/support/feature/base_feature_helper.rb
solidus_backend-2.5.0.rc1 spec/support/feature/base_feature_helper.rb
solidus_backend-2.5.0.beta2 spec/support/feature/base_feature_helper.rb
solidus_backend-2.5.0.beta1 spec/support/feature/base_feature_helper.rb
solidus_backend-2.4.2 spec/support/feature/base_feature_helper.rb
solidus_backend-2.4.1 spec/support/feature/base_feature_helper.rb
solidus_backend-2.3.1 spec/support/feature/base_feature_helper.rb
solidus_backend-2.2.2 spec/support/feature/base_feature_helper.rb
solidus_backend-2.1.1 spec/support/feature/base_feature_helper.rb
solidus_backend-2.0.3 spec/support/feature/base_feature_helper.rb
solidus_backend-1.4.2 spec/support/feature/base_feature_helper.rb
solidus_backend-1.3.2 spec/support/feature/base_feature_helper.rb
solidus_backend-2.4.0 spec/support/feature/base_feature_helper.rb
solidus_backend-2.4.0.rc1 spec/support/feature/base_feature_helper.rb
solidus_backend-2.4.0.beta1 spec/support/feature/base_feature_helper.rb
solidus_backend-2.3.0 spec/support/feature/base_feature_helper.rb
solidus_backend-2.3.0.rc3 spec/support/feature/base_feature_helper.rb
solidus_backend-2.3.0.rc2 spec/support/feature/base_feature_helper.rb