Skip to content

[FIX] mail: fix test 'replying to message should only render relevant…#5163

Open
alexkuhn wants to merge 1 commit into
master-owl3-migrationfrom
master-owl3-migration-4-aku
Open

[FIX] mail: fix test 'replying to message should only render relevant…#5163
alexkuhn wants to merge 1 commit into
master-owl3-migrationfrom
master-owl3-migration-4-aku

Conversation

@alexkuhn
Copy link
Copy Markdown

… part'

Test was adapted several time. Initially the patch of Message had:

  • onMounted
  • onPatched

This was then changed to

  • onMounted
  • onRendered

And this change over-estimated the rendering by at least 1, as onRendered also includes an extra render.
But when this change was made, the counter was not increased in the assertion.

Then the onMounted was removed, and the counter was reduced.

The test is failing because the counter was changed from lower than 3 to lower than 2, but the initial change from onMounted/onPatched to onRendered should preserve the same counter of lower than 3.

This commit fixes with the correct counter.

Also the assertion on renderers on ActionSwiper were not necessarily made clear that this is related to the Message, so this commit adds comment to make it clear.

@robodoo
Copy link
Copy Markdown

robodoo commented May 13, 2026

This PR targets the un-managed branch odoo-dev/odoo:master-owl3-migration, it needs to be retargeted before it can be merged.

@mcm-odoo mcm-odoo force-pushed the master-owl3-migration branch from 45ff4dd to 8b01dce Compare May 13, 2026 10:59
… part'

Test was adapted several time. Initially the patch of Message had:

- onMounted
- onPatched

This was then changed to
- onMounted
- onRendered

And this change over-estimated the rendering by at least 1, as
onRendered also includes an extra render.
But when this change was made, the counter was not increased in the
assertion.

Then the onMounted was removed, and the counter was reduced.

The test is failing because the counter was changed from lower than
3 to lower than 2, but the initial change from onMounted/onPatched to
onRendered should preserve the same counter of lower than 3.

This commit fixes with the correct counter.

Also the assertion on renderers on ActionSwiper were not necessarily
made clear that this is related to the Message, so this commit adds
comment to make it clear.
@alexkuhn alexkuhn force-pushed the master-owl3-migration-4-aku branch from e006254 to 5ea6856 Compare May 13, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants