# Save asks first (1.5.1): Yes / Cancel and "Do not ask me again", which only counts with Yes.
# Part 1 of 2: t25b goes on after a restart, with the same settings folder and file. Copy of test/sample.pdf.
# test/wine/edit_tests.sh replaces @R with the run's suffix.
wait 1200
key ctrl+e
wait 300
echo --- 1. a rectangle, Ctrl+S: the question shows; tick "Do not ask me again", then Cancel
rail 5
pdown 1 320 260
pmove 1 400 300
pup 1 460 340
wait 500
key ctrl+s
wait 800
state test/out/t25_01_asked-@R.txt
shotscreen test/out/t25_01_asked-@R.png
key alt+d
wait 200
shotscreen test/out/t25_02_ticked-@R.png
key esc
wait 600
state test/out/t25_02_cancelled-@R.txt
echo --- 2. the Save button: asked again (the tick had no effect with Cancel); Yes
rail 12
wait 800
state test/out/t25_03_asked_again-@R.txt
key enter
wait 1500
state test/out/t25_04_saved-@R.txt
echo --- 3. an ellipse, Ctrl+S: asked; tick + Yes: saved, and the question is off
rail 6
pdown 1 320 380
pmove 1 400 420
pup 1 460 450
wait 500
key ctrl+s
wait 800
state test/out/t25_05_asked-@R.txt
key alt+d
wait 200
key enter
wait 1500
state test/out/t25_06_saved_off-@R.txt
quit
