Sha256: e7ece5fa14ce12f2868d960c971a7755c6f20d8f80f2e49f1709c26ff341e949
Contents?: true
Size: 393 Bytes
Versions: 4
Compression:
Stored size: 393 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 RSpec.configure do |config| config.include BaseFeatureHelper, type: :feature end
Version data entries
4 entries across 4 versions & 1 rubygems