summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorChristophe Monniez <moc@odoo.com>2019-01-26 12:47:35 +0000
committerChristophe Monniez <moc@odoo.com>2019-01-26 15:09:37 +0000
commit03a88196525abe0cc3c2a47cc46bcdf802416ef7 (patch)
tree04eedcd36c0746337e816589d49ae47416e70995 /addons/web/static/src
parent529069996cec358c060a5b8f1bbf3955c37207a7 (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. closes odoo/odoo#30584
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions