#!/usr/bin/env bash
function output {
local max="${1}"; shift
for ((i=1; i <= max; ++i)); do
sleep 0.1
echo "$@"
done
}
moulti step add 1 --min-height=10 --max-height=10 --title='Step with auto-scroll enabled by default'
moulti step add 2 --min-height=10 --max-height=10 --title='Step with auto-scroll disabled' --no-auto-scroll
moulti step add 3 --min-height=10 --max-height=10 --title='Step with auto-scroll enabled by default'
output 40 'interrupted auto-scrolling' | moulti pass 1 &
output 40 'no auto-scrolling' | moulti pass 2 &
output 40 'auto-scrolling' | moulti pass 3 &
touch "${MOULTI_TEST_BEACON}-output-started"
wait