tests: Stabilize test_qute_settings_persistence

The :jseval command triggers an XHR in JS, and we'll need to wait for that to
actually finish (async) before the setting is really set.

See https://github.com/qutebrowser/qutebrowser/issues/5390#issuecomment-628773737
This commit is contained in:
Florian Bruhin 2020-06-08 20:07:16 +02:00
parent e58ba17dd2
commit cfdebbbe23
1 changed files with 2 additions and 0 deletions

View File

@ -381,6 +381,8 @@ def test_qute_settings_persistence(short_tmpdir, request, quteproc_new):
quteproc_new.send_cmd(':jseval --world main '
'cset("search.ignore_case", "always")')
quteproc_new.wait_for(message='No output or error')
quteproc_new.wait_for(category='config',
message='Config option changed: *')
assert quteproc_new.get_setting('search.ignore_case') == 'always'