mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[IMP] test_themes: whitelist new snippet newsletter box classes
task-4306880 Part of task-4077427 closes odoo/design-themes#1036 Related: odoo/odoo#186281 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -73,6 +73,13 @@ CONFLICTUAL_CLASSES_RE = {
|
|||||||
# Shapes
|
# Shapes
|
||||||
re.compile(r'^o_web_editor_[A-Z].+'): [],
|
re.compile(r'^o_web_editor_[A-Z].+'): [],
|
||||||
# Snippets
|
# Snippets
|
||||||
|
# TODO our convention (badly followed) for classes which are specific to a
|
||||||
|
# snippet's inner components or options is to start that class with the
|
||||||
|
# class specific to the snippet itself. For instance, for a s_some_stuff
|
||||||
|
# snippet, use s_some_stuff_button or s_some_stuff_small. The test here
|
||||||
|
# flags as wrong such an usecase... unless you explicitly whitelist it. It
|
||||||
|
# should be smarter than that and make following our convention always ok
|
||||||
|
# without the need to change this test's whitelist.
|
||||||
re.compile(r'^s_.*'): [
|
re.compile(r'^s_.*'): [
|
||||||
's_alert_md',
|
's_alert_md',
|
||||||
's_blockquote_with_icon', 's_blockquote',
|
's_blockquote_with_icon', 's_blockquote',
|
||||||
@@ -93,7 +100,7 @@ CONFLICTUAL_CLASSES_RE = {
|
|||||||
's_table_of_content_vertical_navbar', 's_table_of_content_navbar_sticky', 's_table_of_content_navbar_wrap',
|
's_table_of_content_vertical_navbar', 's_table_of_content_navbar_sticky', 's_table_of_content_navbar_wrap',
|
||||||
's_timeline_card',
|
's_timeline_card',
|
||||||
's_website_form_custom', 's_website_form_dnone', 's_website_form_field', 's_website_form_input', 's_website_form_mark', 's_website_form_submit', 's_website_form_no_submit_label',
|
's_website_form_custom', 's_website_form_dnone', 's_website_form_field', 's_website_form_input', 's_website_form_mark', 's_website_form_submit', 's_website_form_no_submit_label',
|
||||||
's_donation_btn', 's_donation_custom_btn',
|
's_donation_btn', 's_donation_custom_btn', 's_newsletter_subscribe_form_input_small',
|
||||||
],
|
],
|
||||||
# Text
|
# Text
|
||||||
re.compile(r'^text-(?!(center|end|start|bg-|lg-)).*$'): [
|
re.compile(r'^text-(?!(center|end|start|bg-|lg-)).*$'): [
|
||||||
|
|||||||
Reference in New Issue
Block a user