Skip to content

Commit

Permalink
fix click_tab test helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob committed Dec 8, 2023
1 parent 33b021b commit 2548c5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/avo/test_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2548c5e

Please sign in to comment.