From a808eaf1c325ee42f1ae32d4deb1396cef0625b5 Mon Sep 17 00:00:00 2001 From: mano-odoo Date: Fri, 6 Sep 2024 17:29:47 +0200 Subject: [PATCH] [FIX] test_themes: whitelist `fa-stack` with `fa-` Some snippet may come with the `fa-stack` class which breaks the design-themes tests. task-4156290 Part of: task-4077427 Part-of: odoo/design-themes#919 Related: odoo/odoo#180736 Signed-off-by: Benjamin Vray (bvr) Signed-off-by: Quentin Smetz (qsm) --- test_themes/tests/test_new_page_templates.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test_themes/tests/test_new_page_templates.py b/test_themes/tests/test_new_page_templates.py index 6ab8a0b8d..00249a674 100644 --- a/test_themes/tests/test_new_page_templates.py +++ b/test_themes/tests/test_new_page_templates.py @@ -64,7 +64,8 @@ CONFLICTUAL_CLASSES_RE = { re.compile(r'^(p(y|b)?-?\d+|padding-.+)$'): ['p0'], # Font awesome re.compile(r'^fa-\dx$'): [], - re.compile(r'^fa-...+'): [], + # Whitelist workaround for s_social_media inner snippet Layout: None + re.compile(r'^fa-...+'): ['fa-stack'], # Rounded re.compile(r'^rounded-.+'): [], # Shadow