Skip to content

Commit 85a067b

Browse files
committed
[FIX] website: fix typo in snippets_all_drag_and_drop test
The test was introduced in [1] with a typo on the first step (which is only there to ensure the test does contain steps). Note: with the 15.1 forward-port, the "number of steps" check had to be adapted because snippets were removed at [2]. This reveals however two issues: - Snippets which use the generic "Dynamic Snippet" as base are not tested by the test. - [2] removed the s_speaker_bio snippet by mistake Both those problems will be fixed in other PR alongside improving the way the "number of steps" check works. [1]: odoo@460d5ec [2]: odoo@b5c87d8 closes odoo#94330 X-original-commit: 8e6a6ab Signed-off-by: Quentin Smetz (qsm) <[email protected]>
1 parent 6892283 commit 85a067b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addons/website/static/tests/tours/snippets_all_drag_and_drop.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ tour.register("snippets_all_drag_and_drop", {
6767
// safety check, otherwise the test might "break" one day and
6868
// receive no steps. The test would then not test anything anymore
6969
// without us noticing it.
70-
if (steps.lenth < 280) {
71-
console.error("This test is not behaving as it should.");
70+
if (steps.length < 270) {
71+
console.error(`This test is not behaving as it should, got only ${steps.length} steps.`);
7272
}
7373
},
7474
},

0 commit comments

Comments
 (0)