24 lines
803 B
Python
24 lines
803 B
Python
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||
|
|
||
|
from odoo import tests
|
||
|
from odoo.addons.test_mail_full.tests.test_portal import TestPortal
|
||
|
|
||
|
|
||
|
@tests.common.tagged("post_install", "-at_install")
|
||
|
class TestUIPortal(TestPortal):
|
||
|
def test_star_message(self):
|
||
|
self.env["mail.message"].create(
|
||
|
{
|
||
|
"author_id": self.user_employee.partner_id.id,
|
||
|
"body": "Test Message",
|
||
|
"model": self.record_portal._name,
|
||
|
"res_id": self.record_portal.id,
|
||
|
"subtype_id": self.ref("mail.mt_comment"),
|
||
|
}
|
||
|
)
|
||
|
self.start_tour(
|
||
|
f"/my/test_portal_records/{self.record_portal.id}",
|
||
|
"star_message_tour",
|
||
|
login=self.user_employee.login,
|
||
|
)
|