test(combobox): increase wait time because component may be slow to render

Fix erreur type 'Unable to find css "li[role=\"option\"]'

Ce problème peut-être reproduit en local, en diminuant le wait à 0.001 ;
avec une plus grande valuer il disparaît.
This commit is contained in:
Colin Darie 2022-08-03 16:13:52 +02:00
parent 9ebcbbbd67
commit 1601a18c34
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4

View file

@ -105,7 +105,7 @@ module SystemHelpers
def select_combobox(libelle, fill_with, value, check: true) def select_combobox(libelle, fill_with, value, check: true)
fill_in libelle, with: fill_with fill_in libelle, with: fill_with
find('li[role="option"]', text: value).click find('li[role="option"]', text: value, wait: 5).click
if check if check
check_selected_value(libelle, with: value) check_selected_value(libelle, with: value)
end end