*: website, website_blog, website_crm, website_event, website_forum, website_hr_recruitment, website_mass_mailing, website_sale, website_sale_loyalty, website_slides This commit adds the current website displayed view xmlid outside of the iframe, on its container, so that the tours registered with registerThemeHomepageTour can continue to prepend their triggers with the view xml id. Introduce registerEditionTour: this function will allow tour maker to more easily register a tour that needs to start in the iframe's backend and go in edit mode. See merge commit for more information. task-2687506 Co-authored-by: Benjamin Vray <bvr@odoo.com> Co-authored-by: Younn Olivier <yol@odoo.com>
23 lines
775 B
Python
23 lines
775 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
import odoo.tests
|
|
|
|
|
|
@odoo.tests.tagged('post_install', '-at_install')
|
|
class TestUi(odoo.tests.HttpCase):
|
|
def test_admin(self):
|
|
# Ensure at least two blogs exist for the step asking to select a blog
|
|
self.env['blog.blog'].create({'name': 'Travel'})
|
|
|
|
# Ensure at least one image exists for the step that chooses one
|
|
self.env['ir.attachment'].create({
|
|
'public': True,
|
|
'type': 'url',
|
|
'url': '/web/image/123/transparent.png',
|
|
'name': 'transparent.png',
|
|
'mimetype': 'image/png',
|
|
})
|
|
|
|
self.start_tour(self.env['website'].get_client_action_url('/'), 'blog', login='admin')
|