From e5b61cf1695d6f1cfddee25c525f25113dd58d6d Mon Sep 17 00:00:00 2001 From: "stefanorigano (SRI)" Date: Thu, 17 Apr 2025 16:06:14 +0200 Subject: [PATCH] [FIX] test_themes: allow flexibility on `align-self-*-*` uses This allows more flexibility on the use of `align-self-*-*` classes combination to better handle responsiveness in some scenario. Related to task-4373543 Part-of: odoo/design-themes#1054 Related: odoo/odoo#189299 Signed-off-by: Quentin Smetz (qsm) --- test_themes/tests/test_new_page_templates.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test_themes/tests/test_new_page_templates.py b/test_themes/tests/test_new_page_templates.py index 59a3eff84..1952766ad 100644 --- a/test_themes/tests/test_new_page_templates.py +++ b/test_themes/tests/test_new_page_templates.py @@ -37,7 +37,12 @@ CONFLICTUAL_CLASSES = [ CONFLICTUAL_CLASSES_RE = { # Align re.compile(r'^align-(?!(self|items)-).+'): [], - re.compile(r'^align-self-.+'): [], + re.compile(r'^align-self-(?:start|center|end)$'): [], + re.compile(r'^align-self-sm-(?:start|center|end)$'): [], + re.compile(r'^align-self-md-(?:start|center|end)$'): [], + re.compile(r'^align-self-lg-(?:start|center|end)$'): [], + re.compile(r'^align-self-xl-(?:start|center|end)$'): [], + re.compile(r'^align-self-xxl-(?:start|center|end)$'): [], re.compile(r'^align-items-.+'): [], # BG re.compile(r'^bg(-|_)'): [