test: define final character HUD contracts
This commit is contained in:
@@ -15,5 +15,5 @@ func test_current_game_event_and_hud_remain_available_with_attributes_domain_loa
|
||||
var hud := game.get_node("HUD") as GameHud
|
||||
assert_eq(state.enemies[&"goblin"].hit_points, 3)
|
||||
assert_true(game.get_run_state().recent_events(2).any(func(event: GameEvent) -> bool: return event.kind == &"melee"))
|
||||
assert_true(hud.player_health_label.text.contains("PV du joueur :"))
|
||||
assert_eq(hud.player_health_label.text, "PV : %d/%d" % [state.player.hit_points, state.player.max_hit_points])
|
||||
assert_true(hud.event_log.get_parsed_text().contains("Vous frappez le gobelin"))
|
||||
|
||||
Reference in New Issue
Block a user