summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorChristophe Monniez <moc@odoo.com>2019-01-26 12:47:35 +0000
committerChristophe Monniez <moc@odoo.com>2019-03-19 08:37:07 +0000
commit2c9505fda7f2eb473c008ef9af46380a7670d80a (patch)
tree9946af10d631f3dd01a5278aafef143ee91a673f /addons/web/static/src/xml
parent4e39328a76a34a4d171e131326fbb92a05b8ce0d (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 03a88196525abe0cc3c2a47cc46bcdf802416ef7 closes odoo/odoo#31936 Signed-off-by: Christophe Simonis <chs@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml')
0 files changed, 0 insertions, 0 deletions