mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
204 lines
5.9 KiB
Plaintext
204 lines
5.9 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`can be rendered (in home menu) 1`] = `
|
|
"<div class=\\"o_web_client\\">
|
|
<div class=\\"o_navbar o_in_home\\">
|
|
|
|
|
|
</div>
|
|
<div class=\\"o_home_menu\\">
|
|
<div class=\\"o_apps\\">
|
|
<a href=\\"#menu_id=96&action_id=131\\" class=\\"o_app\\" data-menu=\\"96\\">
|
|
<i class=\\"fa fa-comment o_app_icon fa-3x fa-fw\\"></i>
|
|
<div class=\\"o_caption\\">
|
|
Discuss
|
|
</div>
|
|
</a><a href=\\"#menu_id=205&action_id=250\\" class=\\"o_app\\" data-menu=\\"205\\">
|
|
<i class=\\"fa fa-pen o_app_icon fa-3x fa-fw\\"></i>
|
|
<div class=\\"o_caption\\">
|
|
Notes
|
|
</div>
|
|
</a><a href=\\"#menu_id=409&action_id=597\\" class=\\"o_app\\" data-menu=\\"409\\">
|
|
<i class=\\"fa fa-handshake o_app_icon fa-3x fa-fw\\"></i>
|
|
<div class=\\"o_caption\\">
|
|
CRM
|
|
</div>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class=\\"o_content o_hidden\\"></div>
|
|
<div class=\\"o_notification_container\\">
|
|
|
|
</div>
|
|
<div class=\\"o_loading d-none\\">Loading</div>
|
|
</div>"
|
|
`;
|
|
|
|
exports[`clicks on client action with invalid key => empty widget is rendered + warning 1`] = `
|
|
"<div class=\\"o_web_client\\">
|
|
<div class=\\"o_navbar\\">
|
|
<a aria-label=\\"Applications\\" class=\\"o_title fa fa-th\\" href=\\"#\\" title=\\"Applications\\" accesskey=\\"h\\"></a>
|
|
|
|
<a class=\\"o_menu_brand\\" href=\\"\\" role=\\"button\\">
|
|
Discuss
|
|
</a>
|
|
<ul class=\\"o_menu_sections\\">
|
|
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class=\\"o_content\\"><div></div></div>
|
|
<div class=\\"o_notification_container\\">
|
|
|
|
<div class=\\"o_notification o_error\\">
|
|
|
|
<div class=\\"o_notification_title\\">
|
|
<span class=\\"o_icon fa fa-3x fa-exclamation\\" role=\\"img\\" aria-label=\\"Notification Invalid Client Action\\" title=\\"Notification Invalid Client Action\\"></span>
|
|
Invalid Client Action
|
|
</div>
|
|
<div class=\\"o_notification_content\\">
|
|
Cannot find widget 'mail.discuss' in the action registry
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class=\\"o_loading d-none\\">Loading</div>
|
|
</div>"
|
|
`;
|
|
|
|
exports[`if url has action_id, will render action and navigate to proper menu_id 1`] = `
|
|
"<div class=\\"o_web_client\\">
|
|
<div class=\\"o_navbar\\">
|
|
<a aria-label=\\"Applications\\" class=\\"o_title fa fa-th\\" href=\\"#\\" title=\\"Applications\\" accesskey=\\"h\\"></a>
|
|
|
|
<a class=\\"o_menu_brand\\" href=\\"\\" role=\\"button\\">
|
|
Discuss
|
|
</a>
|
|
<ul class=\\"o_menu_sections\\">
|
|
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class=\\"o_content\\"><div class=\\"o_discuss\\">
|
|
<span>DISCUSS!!</span>
|
|
<button>Reset first counter</button>
|
|
<button>Reset counter 2 in 3s</button>
|
|
<button>Toggle Clock/counters</button>
|
|
<button>Toggle Color</button>
|
|
<button>Rerender this widget</button>
|
|
<input>
|
|
|
|
<div>
|
|
<button>-</button>
|
|
<span style=\\"font-weight:bold\\">Value: 4</span>
|
|
<button>+</button>
|
|
</div>
|
|
<div>
|
|
<button>-</button>
|
|
<span style=\\"font-weight:bold\\">Value: 400</span>
|
|
<button>+</button>
|
|
</div>
|
|
|
|
<div>
|
|
<span>Current Color: </span>
|
|
red
|
|
</div>
|
|
<button>Add notif</button>
|
|
<button>Add sticky notif</button>
|
|
<button>Add warning</button>
|
|
</div></div>
|
|
<div class=\\"o_notification_container\\">
|
|
|
|
</div>
|
|
<div class=\\"o_loading d-none\\">Loading</div>
|
|
</div>"
|
|
`;
|
|
|
|
exports[`open act window action with invalid viewtype => empty widget is rendered + warning 1`] = `
|
|
"<div class=\\"o_web_client\\">
|
|
<div class=\\"o_navbar\\">
|
|
<a aria-label=\\"Applications\\" class=\\"o_title fa fa-th\\" href=\\"#\\" title=\\"Applications\\" accesskey=\\"h\\"></a>
|
|
|
|
<a class=\\"o_menu_brand\\" href=\\"\\" role=\\"button\\">
|
|
Notes
|
|
</a>
|
|
<ul class=\\"o_menu_sections\\">
|
|
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class=\\"o_content\\"><div></div></div>
|
|
<div class=\\"o_notification_container\\">
|
|
|
|
<div class=\\"o_notification o_error\\">
|
|
|
|
<div class=\\"o_notification_title\\">
|
|
<span class=\\"o_icon fa fa-3x fa-exclamation\\" role=\\"img\\" aria-label=\\"Notification Invalid View type\\" title=\\"Notification Invalid View type\\"></span>
|
|
Invalid View type
|
|
</div>
|
|
<div class=\\"o_notification_content\\">
|
|
Cannot find view of type 'kanban' in the view registry
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class=\\"o_loading d-none\\">Loading</div>
|
|
</div>"
|
|
`;
|
|
|
|
exports[`start with no action => clicks on client action => discuss is rendered 1`] = `
|
|
"<div class=\\"o_web_client\\">
|
|
<div class=\\"o_navbar\\">
|
|
<a aria-label=\\"Applications\\" class=\\"o_title fa fa-th\\" href=\\"#\\" title=\\"Applications\\" accesskey=\\"h\\"></a>
|
|
|
|
<a class=\\"o_menu_brand\\" href=\\"\\" role=\\"button\\">
|
|
Discuss
|
|
</a>
|
|
<ul class=\\"o_menu_sections\\">
|
|
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class=\\"o_content\\"><div class=\\"o_discuss\\">
|
|
<span>DISCUSS!!</span>
|
|
<button>Reset first counter</button>
|
|
<button>Reset counter 2 in 3s</button>
|
|
<button>Toggle Clock/counters</button>
|
|
<button>Toggle Color</button>
|
|
<button>Rerender this widget</button>
|
|
<input>
|
|
|
|
<div>
|
|
<button>-</button>
|
|
<span style=\\"font-weight:bold\\">Value: 4</span>
|
|
<button>+</button>
|
|
</div>
|
|
<div>
|
|
<button>-</button>
|
|
<span style=\\"font-weight:bold\\">Value: 400</span>
|
|
<button>+</button>
|
|
</div>
|
|
|
|
<div>
|
|
<span>Current Color: </span>
|
|
red
|
|
</div>
|
|
<button>Add notif</button>
|
|
<button>Add sticky notif</button>
|
|
<button>Add warning</button>
|
|
</div></div>
|
|
<div class=\\"o_notification_container\\">
|
|
|
|
</div>
|
|
<div class=\\"o_loading d-none\\">Loading</div>
|
|
</div>"
|
|
`;
|