47 lines
994 B
Text
47 lines
994 B
Text
# Dialogs (S020): alert, confirm, prompt, select, colour, leave page, find bar, permission bar. Offline.
|
|
# Run with SMOKE_VISIBLE=1 SMOKE_SIZE=1280x900 tools/smoke.sh tests/smoke/dialogs.txt; read the PNGs.
|
|
wait 3
|
|
resize 1280 900
|
|
set /theme/mode "dark"
|
|
open @PAGES@/dialogs.html
|
|
waitload
|
|
js setTimeout(() => alert("Your session is about to expire. Save your work before it ends."), 50)
|
|
wait 1.2
|
|
shot alert-dark
|
|
key Return
|
|
wait 0.5
|
|
js setTimeout(() => confirm("Delete this draft? This cannot be undone."), 50)
|
|
wait 1.2
|
|
shot confirm-dark
|
|
key Escape
|
|
wait 0.5
|
|
js setTimeout(() => prompt("What should the file be called?", "notes.txt"), 50)
|
|
wait 1.2
|
|
shot prompt-dark
|
|
key Escape
|
|
wait 0.5
|
|
locate #s
|
|
wait 0.5
|
|
click @
|
|
wait 1
|
|
shot select-dark
|
|
key Escape
|
|
wait 0.5
|
|
locate #c
|
|
wait 0.5
|
|
click @
|
|
wait 1
|
|
shot color-dark
|
|
key Escape
|
|
wait 0.5
|
|
do find
|
|
wait 0.5
|
|
shot find-dark
|
|
set /theme/mode "light"
|
|
js setTimeout(() => alert("Light mode alert."), 50)
|
|
wait 1.2
|
|
shot alert-light
|
|
key Return
|
|
wait 0.5
|
|
status done
|
|
quit
|