fix(spec.flacky): maybe flacky due to css animation not loved by capy

This commit is contained in:
Martin 2022-10-04 15:07:46 +02:00 committed by mfo
parent f3787e4423
commit 91eeb4bf1c

View file

@ -128,6 +128,7 @@ module SystemHelpers
def log_out def log_out
within('.fr-header .fr-container .fr-header__tools .fr-btns-group') do within('.fr-header .fr-container .fr-header__tools .fr-btns-group') do
click_button(title: 'Mon compte') click_button(title: 'Mon compte')
expect(page).to have_selector('#account.fr-collapse--expanded', visible: true)
click_on 'Se déconnecter' click_on 'Se déconnecter'
end end
expect(page).to have_current_path(root_path, wait: 5) expect(page).to have_current_path(root_path, wait: 5)