odoo/odoo#94609

Created by fw-bot
Merged at 31bf64b5d5c4a793069c40e41b47a7894e74f5d8

Statuses:

label
odoo-dev:saas-15.4-15.0-fix-drag-drop-count-rde-1uGw-fw
head
43a90fe99d422e1bb84a21f8c750b87a2d8128a7
merged
3 years ago by Romain Derie (rde)
odoo/odoo
15.0 #94543
saas-15.1 #94576
saas-15.2 #94599
saas-15.3 #94605
saas-15.4 #94609
16.0
17.0
saas-17.4
18.0
saas-18.1
saas-18.2
saas-18.3
master #94614

[FW][FIX] website: lower the step safety check amount

The drag and drop mega test is quite simple: the python gets the list of
all the snippets (by rendering a view + etree), then it just starts a JS
tour by passing all those snippets in the tour URL.

From there, the JS tour is in charged of building its own steps based on
the list of snippets it received from the python.

The MOST important part is to be 100% sure that the built steps are as
expected: ~5 steps / snippets: ~220 steps with website only and ~280
steps with all modules.
If we don't have that check, the tour could suddenly not test anything
because the step list would be empty, but the test wouldn't fail.

Thus, we don't want to programmatically try to compute that step amount
but want it to remain an hardcoded number, which is lowered in this
commit as if we have 220 (it could be 200, 150..) steps, it means that
the steps were built as expected.

Note that since the test is run on post_install, 280 was fine since all
modules were installed.
But the nightly build is also testing this test with only the website
module, ultimately failing.

Note that this check was actually not working at all since 1 as there
was a typo on length.

Forward-Port-Of: #94576
Forward-Port-Of: #94543