test(vessels): read the north-rounding HUD heading from the published readout

The vessel HUD now publishes its text through services.readouts, so the
test harness exposes hud.readout rather than a DOM node's textContent.
This commit is contained in:
Sameh Khamis committed 2026-11-01 20:53:37 -08:00
1 parent 08265d94d4
commit 0e170e0515
1 file changed
+1 -1
+1 -1
View File
@@ -1336,7 +1336,7 @@ test('the vessel HUD reads a course that rounds to north as HDG 0DEG', () => {
try {
Object.assign(harness.record, { heading: null, course: 359.7 });
assert.equal(aisLiveVesselsLayer.selectById(harness.record.mmsi), true);
assert.match(harness.hud.textContent, /HDG: 0DEG/);
assert.match(harness.hud.readout.text, /HDG: 0DEG/);
} finally {
harness.cleanup();
}