Skip to content

Commit

Permalink
updating the alt_verify path
Browse files Browse the repository at this point in the history
  • Loading branch information
joesho112358 committed Oct 15, 2024
1 parent d55b965 commit ee915b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shiny/playwright/controller/_expect.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,12 @@ def expect_locator_values_in_list(
# and all elements all unique, then it should have a count of `len(arr)`
loc_inputs = loc_container.locator(loc_item)
try:
if kwargs.get("alt_verify"):
if alt_verify:
import re

anything = re.compile(r".*")
any_text_values = [anything for _ in range(len(arr))]
playwright_expect(loc_inputs).to_have_text(any_text_values, timeout = timeout)
playwright_expect(loc_inputs).to_have_text(any_text_values, timeout=timeout)
else:
playwright_expect(loc_inputs).to_have_count(len(arr), timeout=timeout)
except AssertionError as e:
Expand Down

0 comments on commit ee915b3

Please sign in to comment.