refinerycms icon indicating copy to clipboard operation
refinerycms copied to clipboard

Bugfix/wait for ajax

Open bricesanchez opened this issue 6 years ago • 1 comments

Hi @parndt !

I've tried to fix all flaky tests with wait for ajax or sleep. It looks like it works but i'm not a big fan of this solution.

Do you have something better to recommand?

bricesanchez avatar Jan 09 '20 04:01 bricesanchez

Hmmm @bricesanchez interesting. I wonder if the webdriver itself has a config option for how long to wait. For example the cuprite runner has a slowmo option

:slowmo (Integer | Float) - Set a delay to wait before sending command. Useful companion of headless option, so that you have time to see changes.

We don't use cuprite, but it's an interesting idea.

parndt avatar Jan 09 '20 08:01 parndt