summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields
diff options
context:
space:
mode:
authorChristophe Monniez <moc@odoo.com>2019-01-26 12:47:35 +0000
committerChristophe Monniez <moc@odoo.com>2019-01-28 13:16:26 +0000
commit609c3ea57353c10c7e59d3bb1ff30dd4a0cc0e95 (patch)
tree662b8ba4ee9cfeb9765a106d98d6bbdbae40743e /addons/web/static/src/js/fields
parent60748a95e2ce5ba7a1bfed6f254b4a53f684883c (diff)
[FIX] tests: avoid check document.readyState of about:blank
In an HttpCase test, when the browser_js method is used, an optional javascript code can be used to check that the page is ready to execute the test. When no 'ready' code is given it defaults to check the 'document.readyState' status. In some rare cases (discovered by @Xavier-Do) this status is checked on the 'about:blank' page. As the page seems ready, the test code is evaluated and fails. With this commit, when no specific ready code is provided, the test will wait for a chrome devtools event that ensure the page is fully loaded before starting the test. cherry-pick of 03a88196525 closes odoo/odoo#30609
Diffstat (limited to 'addons/web/static/src/js/fields')
0 files changed, 0 insertions, 0 deletions