Skip to content

Commit

Permalink
Merge pull request #306 from Tecnativa/9.0-website_portal_contact-fix…
Browse files Browse the repository at this point in the history
…_test

[9.0][FIX][website_portal_contact] Use demo user instead of portal one for tests.
  • Loading branch information
pedrobaeza authored Dec 28, 2016
2 parents 93d593b + baade19 commit ab420d0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion website_portal_contact/tests/test_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@


class UICase(HttpCase):
def setUp(self):
super(UICase, self).setUp()
with self.cursor() as cr:
env = self.env(cr)
# Need a demo user with portal permissions
env.ref("base.user_demo").groups_id = env.ref("base.group_portal")

def test_contacts(self):
"""Test frontend tour."""
self.phantom_js(
Expand All @@ -14,4 +21,4 @@ def test_contacts(self):
".run('website_portal_contact', 'test', 'events')",
ready="odoo.__DEBUG__.services['web.Tour']"
".tours.website_portal_contact",
login="portal")
login="demo")

0 comments on commit ab420d0

Please sign in to comment.