mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
* Extend web_widget_slick widget to open web_widget_darkroom modal and update selected carousel image on close * Override _slickRender method from web_widget_slick to add data attribute w/ record id * Change cursor to pointer on slickroom images * Disable features in read-only mode * Keep default cursor * Prevent modal from opening * Add tests [IMP] web_widget_slickroom: Make requested changes * Use jquery .data instead of .attr for image record IDs * Add explicit img selector when finding images by record ID * Remove svg version of icon
16 lines
390 B
Python
16 lines
390 B
Python
# -*- coding: utf-8 -*-
|
|
# Copyright 2017 LasLabs Inc.
|
|
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
|
|
|
|
from odoo.tests.common import HttpCase
|
|
|
|
|
|
class UICase(HttpCase):
|
|
def test_ui_web(self):
|
|
"""Test backend tests."""
|
|
self.phantom_js(
|
|
"/web/tests?debug=assets&module=web_widget_slickroom",
|
|
"",
|
|
login="admin",
|
|
)
|