Browse Source

[PORT] noupdate. tests

pull/5/head
ilyasProgrammer 9 years ago
parent
commit
7032b60e76
  1. 2
      mail_archives/tests/test_js.py
  2. 5
      res_partner_mails_count/static/src/js/res_partner_mails_count_tour.js
  3. 2
      res_partner_mails_count/templates.xml
  4. 2
      res_partner_mails_count/tests/test_phantom.py

2
mail_archives/tests/test_js.py

@ -12,4 +12,4 @@ class TestUi(openerp.tests.HttpCase):
}, 1000);
"""
link = '/web#action=%s' % self.ref('mail.mail_channel_action_client_chat')
self.phantom_js(link, code, "odoo.__DEBUG__.services['mail_archives.archives']", login="demo")
self.phantom_js(link, code, "odoo.__DEBUG__.services['mail_archives.archives']", login="admin")

5
res_partner_mails_count/static/src/js/res_partner_mails_count_tour.js

@ -8,10 +8,7 @@ odoo.define('res_partner_mails_count.res_partner_mails_count_tour', function (re
id: 'mails_count_tour',
name: _t("Mails count Tour"),
mode: 'test',
// path: '/web?res_partner_mails_count=tutorial#id=3&view_type=form&model=res.partner',
// path: '/web?debug=1&res_partner_mails_count=tutorial#id=3&view_type=form&model=res.partner',
path: '/web',
// mode: 'tutorial',
path: '/web?&res_partner_mails_count=tutorial#id=3&view_type=form&model=res.partner',
steps: [
{
title: _t("Mails count tutorial"),

2
res_partner_mails_count/templates.xml

@ -30,6 +30,8 @@
</div>
</field>
</record>
</data>
<data noupdate="true">
<record id="res_partner_mails_count_tutorial" model="ir.actions.act_url">
<field name="name">res_partner_mails_count Tutorial</field>
<field name="url" eval="'/web?debug=1&amp;res_partner_mails_count=tutorial#id='+str(ref('base.partner_root'))+'&amp;view_type=form&amp;model=res.partner&amp;/#tutorial_extra.mails_count_tour=true'"/>

2
res_partner_mails_count/tests/test_phantom.py

@ -16,4 +16,4 @@ class TestUi(openerp.tests.HttpCase):
}, 3000);
"""
link = '/web#id=3&view_type=form&model=res.partner'
self.phantom_js(link, code, "openerp.Tour.tours.mails_count_tour", login="admin")
self.phantom_js(link, code, "odoo.__DEBUG__.services['web.Tour'].tours.mails_count_tour", login="admin")
Loading…
Cancel
Save