Skip to content

Commit

Permalink
fix last test
Browse files Browse the repository at this point in the history
  • Loading branch information
skyporter committed Apr 27, 2024
1 parent fdf7066 commit 02b77cc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/support/item_reference_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ def add_single_reference(id, name)
find(".css-g1d714-ValueContainer").click # Click on the filter input
sleep(2)

within(".css-4ljt47-MenuList") do # Within the filter list
find('div', text: name, match: :first, visible: false).click
end
page.execute_script("Array.from(document.querySelectorAll(" \
"'#{id} .css-4ljt47-MenuList div'" \
")).find(el => el.textContent === '#{name}').click();")
end
find("body").click
end

def add_multiple_reference(id, name)
Expand Down

0 comments on commit 02b77cc

Please sign in to comment.