MONKEY (ao): AO options test writes High first (default is Off); reframe ao-character

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
pkuzic
2026-09-25 14:04:54 +01:00
co-authored by Claude Opus 5.5
parent daf2a1aad6
commit 41f46087e2
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1391,7 +1391,7 @@ pub(super) const ON_DEMAND: &[Scenario] = &[
},
Scenario {
name: "ao-character", map: Some(MAP_AZEROTH),
eye: [-9497.6, 57.6, 57.6], look: [-9500.00, 56.00, 56.9], minute: 720,
eye: [-9495.2, 60.8, 59.0], look: [-9500.00, 56.00, 56.9], minute: 720,
ui: Some(UiFixture::Subject { kind: SubjectKind::Creature, at: SUBJECT_SUN }),
},
];
@@ -2081,7 +2081,8 @@ fn ambient_occlusion_dropdown_is_localised_and_live() {
s.run(on_load).unwrap();
assert_eq!(s.eval::<String>("return self.title").unwrap(), title);
assert!(s.eval::<bool>("return getglobal(self.tip) == BENILLA_ADVGFX.tips.AMBIENT_OCCLUSION and string.len(getglobal(self.tip)) > 80").unwrap());
for (tier, label) in labels.iter().enumerate() {
// High first: the registered default is Off, and rewriting the same value is no change.
for (tier, label) in labels.iter().enumerate().rev() {
assert_eq!(s.eval::<String>(&format!("return self.choices[{}].text", tier + 1)).unwrap(), *label);
let _ = s.take_cvar_changes();
s.run(&format!("SetCVar(self.cvar, self.choices[{}].value)", tier + 1)).unwrap();