odoo/odoo#94543

Created by Romain Derie (rde)
Merged at 9375d61708e26d02931799b6550c04d8c85a5891

Statuses:

label
odoo-dev:15.0-fix-drag-drop-count-rde
head
0e68e0b9547d86031db5ed43fe64e006dcf0e1e7
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

[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.