qsm-odoo 8c1b9bc34d [FIX] test_themes: make tests consider our "s_" classes convention
The test was incorrectly flagging inner classes that follow our naming
convention (e.g. "s_floating_blocks_wrapper" for "s_floating_blocks"
snippet). This made maintaining the whitelist tedious and error prone.

The change enables proper enforcement of our conventions while
simplifying whitelist maintenance: a snippet subclass starting with "s_"
should be prefixed by the main snippet class name (e.g.
"s_super_snippet_item" might be added on an inner element of
"s_super_snippet"). The test just checks any element class is
prefixed by any class of any parent (or itself) (for "s_" classes).

Related to task-4373543

closes odoo/design-themes#1054

Related: odoo/odoo#189299
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-04-23 22:04:44 +00:00
2025-02-24 18:31:04 +00:00
2025-02-24 18:31:04 +00:00
2021-05-10 15:45:35 +02:00
S
Description
No description provided
764 MiB
Languages
SCSS 49.6%
Python 25.4%
JavaScript 24.4%
Rich Text Format 0.5%