Nacre/tests/hidden/basic.txt
astar76 4eeb72a25a S045: YouTube plays after a real click in the hidden run; address field lets go when a page takes focus
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 <[email protected]>
2026-11-13 04:18:41 -06:00

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