[OCaml] High Intensity Training Online
test assert imported workouts show their duration in the logbook
The Duration column is relevant for an imported workout: its start and end come from the export. Lock that in -- a promoted 60-minute import shows "60 min" like a native record.
test/web/logbook.ml
@@ -508,6 +508,11 @@
508
508
Alcotest.(check bool)
509
509
"the imported workout title is shown" true
510
510
(Option.is_some (index_from ~needle:"Legs" page 0));
511
Added:
(* The import spans 10:00-11:00, so its duration is relevant and
512
Added:
shown, like a native workout. *)
513
Added:
Alcotest.(check bool)
514
Added:
"the imported workout duration is shown" true
515
Added:
(Option.is_some (index_from ~needle:"60 min" page 0));
511
516
Alcotest.(check bool)
512
517
"it carries the Imported tag" true
513
518
(Option.is_some (index_from ~needle:"logbook-source-tag" page 0));