1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/website_studio/tests/test_controllers.py
2024-12-10 09:04:09 +07:00

12 lines
623 B
Python

from odoo.tests.common import tagged
from odoo.tests import HttpCase
@tagged('post_install', '-at_install')
class TestWebsiteStudioControllers(HttpCase):
def test_new_form_collision(self):
self.start_tour("/web?debug=tests", 'website_studio_new_form_page_collision_tour', login="admin", timeout=200)
last_website_page = self.env['website.page'].search([], order='id desc', limit=1)
self.assertEqual(last_website_page.name, 'web Form', "The new page should have the correct display name")
self.assertEqual(last_website_page.url, '/web-form', "The new page should have the correct url")