# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import odoo.tests @odoo.tests.common.tagged('post_install', '-at_install') class TestClientAction(odoo.tests.HttpCase): def test_01_client_action_redirect(self): page = self.env['website.page'].create({ 'name': 'Base', 'type': 'qweb', 'arch': """ Contact Contact """, 'key': 'website.test_client_action_redirect', 'url': '/test_client_action_redirect', 'is_published': True, }) self.start_tour(page.url, 'client_action_redirect', login='admin') def test_02_client_action_iframe_fallback(self): self.start_tour('/@/', 'client_action_iframe_fallback', login='admin')