From ddcfbaf7bd3629040c203809f744afaf49372217 Mon Sep 17 00:00:00 2001 From: Ilyas Date: Mon, 11 Apr 2016 12:52:22 +0500 Subject: [PATCH] [IMP] ready condition for phantom --- mail_sent/tests/test_js.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail_sent/tests/test_js.py b/mail_sent/tests/test_js.py index 25c074f..952c7e2 100644 --- a/mail_sent/tests/test_js.py +++ b/mail_sent/tests/test_js.py @@ -9,7 +9,7 @@ class TestUi(openerp.tests.HttpCase): setTimeout(function () { $(".mail_sent").click(); setTimeout(function () {console.log('ok');}, 3000); - }, 3000); + }, 1000); """ link = '/web#action=%s' % self.ref('mail.mail_channel_action_client_chat') - self.phantom_js(link, code, "", login="demo") + self.phantom_js(link, code, "odoo.__DEBUG__.services['mail_sent.sent']", login="demo")