# Needs: python3 -m http.server 8765 --bind 127.0.0.1 --directory tests/smoke/pages &
# History flyout, page-tied flyouts and the About page list (S064). Offline. Run with tools/smoke.sh; read the PNGs.
wait 3
set /theme/mode "dark"
flyout history
wait 1
shot history-empty-dark
open http://127.0.0.1:8765/hello.html
waitload 30
open http://127.0.0.1:8765/color.html
waitload 30
newtab http://127.0.0.1:8765/links.html
waitload 30
open http://127.0.0.1:8765/basics.html
waitload 30
flyout history
wait 1
shot history-dark
set /theme/mode "light"
wait 1
shot history-light
# The bookmark flyout belongs to its page: navigating or switching tabs closes it.
do bookmark
wait 1
status flyout-open
expect /flyout true
shot bookmark-flyout
open http://127.0.0.1:8765/hello.html
waitload 30
wait 1
status after-navigation
expect /flyout false
do bookmark
wait 1
expect /flyout true
cmd select 0
wait 1
status after-switch
expect /flyout false
page nacre://about
wait 1
shot about-light
set /theme/mode "dark"
wait 1
shot about-dark
status done
quit
