mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 02:14:01 +00:00
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:
1 parent
08265d94d4
commit
0e170e0515
1 file changed
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user