Commit Graph

12 Commits

Author SHA1 Message Date
mano-odoo a808eaf1c3 [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) <bvr@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-09-21 16:34:53 +00:00
qsm-odoo 9eecd12db1 [IMP] *: remove useless utf-8 declaration
Part-of: odoo/design-themes#919
Related: odoo/odoo#180736
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-09-21 16:34:53 +00:00
Benoit Socias 0da1e3ed9e [IMP] test_themes: add s_progress_bar_label_hidden to whitelist
Adds new class to `s_` whitelist.

Related to https://github.com/odoo/odoo/pull/176141.

task-4094394

closes odoo/design-themes#899

Related: odoo/odoo#176141
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2024-09-06 10:23:52 +00:00
Antoine (anso) cac8f3c4a2 [IMP] test_themes: adapt s_ classes whitelist in tests
This commit adapts the classes whitelist in `test_new_page_templates.py`
based on the new classes added during the dynamic snippets redesign.

task-3097273

closes odoo/design-themes#897

Related: odoo/odoo#135509
Related: odoo/enterprise#68754
Signed-off-by: Robin Lejeune (role) <role@odoo.com>
2024-09-05 08:26:05 +00:00
Brieuc-brd f66833de41 [IMP] test_themes, *: carousels adaptations
*: theme_anelusia, theme_artists, theme_avantgarde, theme_cobalt,
theme_cobalt, theme_enark, theme_loftspace, theme_notes,
theme_odoo_experts, theme_bewise, theme_bistro, theme_buzzy,
theme_clean, theme_graphene, theme_nano, theme_treehouse, theme_yes,
theme_aviato, theme_beauty, theme_bookstore, theme_kea, theme_kiddo,
theme_monglia, theme_orchid, theme_paptic, theme_real_estate,
theme_vehicle, theme_zap

This commit adapts the customizations related to `s_carousel`,
s_image_gallery` and `s_quotes_carousel` since these snippets has been
redesigned in PR[1].

task-3654328
Part of task-3619705

[1]: https://github.com/odoo/odoo/pull/172727

closes odoo/design-themes#836

Related: odoo/odoo#172727
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2024-08-27 08:18:59 +00:00
Brieuc-brd a17285da5b [IMP] test_themes: s_accordion adaptations
task-3759048
Part of task-3619705

[1]: https://github.com/odoo/odoo/pull/172577

closes odoo/design-themes#820

Related: odoo/odoo#172577
Related: odoo/upgrade#6309
Signed-off-by: Soukéina Bojabza (sobo) <sobo@odoo.com>
2024-08-13 14:22:43 +00:00
stefanorigano (SRI) 1304512350 [IMP] test_themes, theme_common: adapt s_progress_bar
task-4070098
part of task-3619705

closes odoo/design-themes#841

Related: odoo/odoo#174286
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2024-07-29 12:50:49 +00:00
Brieuc-brd dece1563a1 [IMP] test_themes, theme_buzzy: s_form adaptations
This commit adapts the s_form customizations since this snippet has been
redesigned in PR [1].

task-4048101
Part of task-3619705

[1]: https://github.com/odoo/odoo/pull/172763

closes odoo/design-themes#832

Related: odoo/odoo#172763
Signed-off-by: Robin Lejeune (role) <role@odoo.com>
2024-07-25 08:06:09 +00:00
Benjamin Vray 2b3b8b49b4 [IMP] test_themes, theme_* : Adapts tours for new dragNDrop system
Following the change in the way of dragging and dropping a snippet onto
the page (by selecting it from a dialog displaying the actual previews
of snippets). The themes tours have been adapted to this change in this
commit.

task-3919405

closes odoo/design-themes#817

Related: odoo/odoo#166967
Related: odoo/enterprise#66150
Signed-off-by: Robin Lejeune (role) <role@odoo.com>
2024-07-23 16:22:48 +00:00
Brieuc-brd 903b6a149a [IMP] theme_buzzy: s_blockquote adaptations
This commit removes the `s_blockquote` customization since this snippets
has been redesigned in PR[1].

task-3658347

[1]: https://github.com/odoo/odoo/pull/172723

Part-of: odoo/design-themes#828
Related: odoo/odoo#172723
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2024-07-23 10:18:56 +00:00
Benjamin Vray 80aa5ad40e [FIX] test_themes: fix test new page templates
The following commit [1] added a test to verify that there are no
duplicate classes in the elements of predefined page templates.

This test worked fine until it failed when we attempted to merge a
commit in which a template is rendered with empty spaces in the class
attribute of an element. The test considered the empty spaces as classes
and therefore assumed that two identical classes existed.

This commit excludes empty spaces when retrieving classes in this test.

[1]: https://github.com/odoo/design-themes/commit/758e2ab819df37c56103b1e82f1e6358b3dba00c

task-3662985

closes odoo/design-themes#792

X-original-commit: 05cfe05280
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
2024-03-20 09:35:08 +00:00
Benoit Socias ee58e3eb6c [IMP] test_themes: add tests to ensure theme compatibility with website
This commit adds a test that makes sure templates can be rendered on
all themes and that they neither contain duplicate classes nor
contradicting ones.

Covered templates:
- snippet blocks
- configurator snippet customizations
- new page template snippet customizations

task-3562147

closes odoo/design-themes#744

X-original-commit: 758e2ab819
Related: odoo/odoo#141074
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-11-05 04:52:43 +00:00