Nacre/tests/smoke/colours.txt
astar76 f99500fe76 S016: R1-11 internal pages drop the site colour, window restyles when it changes
A nacre:// page typed into a web tab kept the site's theme-color, and style_window
used it, so with the Website source palette and fallback picks didn't show. Tab::site_colour
is None on internal pages; draw() restyles when the active tab's site colour differs from
the one the palette was built from. Regression test + tests/smoke/colours.txt.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 07:05:30 -06:00

49 lines
1.1 KiB
Text

# R1-11: colours still change after the welcome setup, also when Settings is typed into a web tab whose page has a
# theme-color. Hidden 1280x1100 layout (tap positions): SMOKE_SIZE=1280x1100, fresh outdir. Expect: site-* orange
# chrome (#DE5833 seed); s-website NOT orange (an internal page has no site colour); s-teal teal; back-site orange
# again (Website source, back on the page); s-palette and tab-palette teal; s-custom blue. settings.json afterwards:
# theme.source "custom", theme.fallback "palette", theme.preset "#006A6A".
wait 3
resize 1280 1060
key enter
wait 0.6
key enter
wait 0.6
key enter
wait 0.6
key enter
wait 0.6
key enter
wait 0.6
key enter
wait 1.5
shot welcome-done
open @PAGES@/theme-colour.html
waitload
wait 1
shot site
cmd navigate nacre://settings/appearance
wait 1.5
shot s-website
tap 614 690
wait 1
shot s-teal
status teal
cmd back
wait 1.5
shot back-site
page nacre://settings/appearance
wait 1.5
tap 747 491
wait 1
shot s-palette
cmd select 0
wait 1
shot tab-palette
page nacre://settings/appearance
wait 1
tap 883 491
wait 1
shot s-custom
status done
quit