# test 2a: password, scanned, single instance, remember position
wait 1500
state test/out/t2_01_pwdialog_open.txt
shot test/out/t2_01_pwdialog.png
type wrong
key enter
wait 1200
state test/out/t2_02_after_wrong.txt
shot test/out/t2_02_after_wrong.png
type test
key enter
wait 1500
state test/out/t2_03_unlocked.txt
shot test/out/t2_03_unlocked.png
key ctrl+f
type pressure
wait 800
state test/out/t2_04_locked_search.txt
key esc
echo --- scanned pdf
open test/scanned.pdf
wait 1500
state test/out/t2_05_scanned.txt
click 700 400
wait 300
shot test/out/t2_05_scanned_click.png
key ctrl+f
type water
wait 600
state test/out/t2_06_scanned_search.txt
shot test/out/t2_06_scanned_search.png
key esc
echo --- single instance: a second launch must open a tab here
exec AiReader.exe test/small1.pdf
wait 1500
state test/out/t2_07_second_launch.txt
echo --- remember position: go to page 20 of big500 at a custom zoom, then quit
open test/big500.pdf
wait 1500
key 2
key 0
key shift+g
wait 300
click 1362 354
wait 500
state test/out/t2_08_before_quit.txt
quit
