Sha256: 1defc20391a7374649ab7ff9be0d8f39e19ac2289493bc6e9a27d85dd7eaee4b

Contents?: true

Size: 309 Bytes

Versions: 42

Compression:

Stored size: 309 Bytes

Contents

# frozen_string_literal: true

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

42 entries across 42 versions & 2 rubygems

Version Path
solidus_backend-2.9.6 spec/support/feature/base_feature_helper.rb
solidus_backend-2.8.6 spec/support/feature/base_feature_helper.rb
solidus_backend-2.9.5 spec/support/feature/base_feature_helper.rb
solidus_backend-2.9.4 spec/support/feature/base_feature_helper.rb
solidus_backend-2.6.6 spec/support/feature/base_feature_helper.rb
solidus_backend-2.7.4 spec/support/feature/base_feature_helper.rb
solidus_backend-2.8.5 spec/support/feature/base_feature_helper.rb
solidus_backend-2.9.3 spec/support/feature/base_feature_helper.rb
solidus_backend-2.9.2 spec/support/feature/base_feature_helper.rb
solidus_backend-2.10.0.beta1 spec/support/feature/base_feature_helper.rb
solidus_backend-2.7.3 spec/support/feature/base_feature_helper.rb
solidus_backend-2.6.5 spec/support/feature/base_feature_helper.rb
solidus_backend-2.9.1 spec/support/feature/base_feature_helper.rb
solidus_backend-2.9.0 spec/support/feature/base_feature_helper.rb
solidus_backend-2.9.0.rc.1 spec/support/feature/base_feature_helper.rb
solidus_backend-2.8.4 spec/support/feature/base_feature_helper.rb
solidus_backend-2.8.3 spec/support/feature/base_feature_helper.rb
solidus_backend-2.7.2 spec/support/feature/base_feature_helper.rb
solidus_backend-2.6.4 spec/support/feature/base_feature_helper.rb
solidus_backend-2.8.2 spec/support/feature/base_feature_helper.rb