# Browser chrome (S016) in dark and light: tab strip, toolbar, address field, bookmarks bar, page card and every
# flyout. Offline. Run with tools/smoke.sh; read the PNGs.
wait 3
set /theme/mode "dark"
page nacre://newtab
newtab @PAGES@/hello.html
waitload 30
newtab @PAGES@/color.html
waitload 30
cmd pin
cmd select 3
set /ui/bookmarks_bar "always"
wait 1
shot chrome-dark
flyout main
wait 0.04
shot main-opening-dark
wait 1
shot main-dark
flyout downloads
wait 1
shot downloads-dark
flyout shield
wait 1
shot shield-dark
flyout media
wait 1
shot media-dark
flyout siteinfo
wait 1
shot siteinfo-dark
flyout profiles
wait 1
shot profiles-dark
flyout apps
wait 1
shot apps-dark
flyout qr
wait 1
shot qr-dark
flyout tabmenu
wait 1
shot tabmenu-dark
flyout back
wait 1
shot back-dark
flyout none
cmd bookmark
wait 1
flyout bookmark
wait 1
shot bookmark-dark
flyout none
type hel
wait 1
shot suggest-dark
flyout none
newtab @PAGES@/video.html
waitload 30
wait 2
cmd mute
wait 1
flyout media
wait 1
shot media-playing-dark
flyout none
cmd select 3
blur
# R1-09: while a page loads the address pill turns into a wavy progress bar; hovering brings the field back.
fakeload 1.2
wait 0.6
shot loading-dark
hover 300 70
wait 0.05
shot loading-morph-dark
wait 0.8
shot loading-hover-dark
hover none
wait 0.8
shot loading-again-dark
# R1-10: the tab's favicon spot shows a cookie spinner while loading, at two points of its cycle, then the favicon.
fakeload 2
wait 0.3
shot tab-spinner-a-dark
wait 0.45
shot tab-spinner-b-dark
fakeload done
wait 0.04
shot tab-spinner-morph-dark
wait 1
shot loaded-dark
set /theme/mode "light"
fakeload 3
wait 0.6
shot loading-light
fakeload done
wait 1
wait 1
shot chrome-light
flyout main
wait 1
shot main-light
flyout downloads
wait 1
shot downloads-light
flyout shield
wait 1
shot shield-light
flyout siteinfo
wait 1
shot siteinfo-light
flyout qr
wait 1
shot qr-light
flyout tabmenu
wait 1
shot tabmenu-light
flyout none
resize 760 600
wait 1
shot narrow-light
status done
quit
