diff --git a/lib/avo/test_helpers.rb b/lib/avo/test_helpers.rb index 17186ed754..c50f909637 100644 --- a/lib/avo/test_helpers.rb +++ b/lib/avo/test_helpers.rb @@ -149,12 +149,12 @@ def save def click_tab(tab_name = "", within_target: nil, **args) if within_target.present? within within_target do - within find('[data-controller="tabs"] turbo-frame:not(.hidden) [data-tabs-target="tabSwitcher"]') do + within find('[data-controller="tabs"] [data-tabs-target="tabSwitcher"]') do find_link(tab_name).click end end else - within find('[data-controller="tabs"] turbo-frame:not(.hidden) [data-tabs-target="tabSwitcher"]') do + within find('[data-controller="tabs"] [data-tabs-target="tabSwitcher"]') do find_link(tab_name).click end end