The hidden click landed on <html> because YouTube keeps its main thread busy ~7 s after load and swaps its skeleton for the player meanwhile; web.txt now clicks once the point hits #movie_player. focus_page drops egui's text focus and attaches the view first; new foreground web tabs, tab switches and new views use it. Selftest status gets ui_typing and page_focused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
643 B
Text
32 lines
643 B
Text
# S045 hidden check: chrome dark/light like tests/smoke/chrome.txt, tabs open/switch/close. Offline.
|
|
wait 3
|
|
shot start
|
|
set /theme/mode "dark"
|
|
page nacre://newtab
|
|
wait 1
|
|
shot newtab-dark
|
|
newtab @PAGES@/hello.html
|
|
waitload 30
|
|
# the address field lets go when a new tab's page loads ("ui_typing": false, "page_focused": true)
|
|
status focus
|
|
newtab @PAGES@/color.html
|
|
waitload 30
|
|
cmd pin
|
|
cmd select 3
|
|
set /ui/bookmarks_bar "always"
|
|
wait 1
|
|
shot chrome-dark
|
|
status tabs3
|
|
cmd select 0
|
|
wait 1
|
|
shot select0
|
|
assert document.title.length > 0
|
|
cmd select 2
|
|
cmd close_tab
|
|
cmd select 2
|
|
wait 1
|
|
status tabs2
|
|
set /theme/mode "light"
|
|
wait 1
|
|
shot chrome-light
|
|
quit
|