import { renderApplicationHtml } from './testSupport/applicationHtml.mjs'; import { readStylesheet } from './testSupport/readStylesheet.mjs'; import { _selectContextMode } from './ui/contextTransactions.js'; import { _initGlobalContextPanel } from './ui/contextBindings.js'; import { ContextControls } from './ui/contextControls.js'; import { clearSelectedLayers } from './ui/contextActions.js'; import { PANEL_RAIL_ITEMS } from './ui/panelRailCatalog.js'; import { readFileSync as readRadioSource } from 'node:fs'; const radioBindings = readRadioSource( new URL('./ui/radioBindings.js', import.meta.url), 'utf8', ); const contextView = readRadioSource( new URL('./ui/views/ContextView.vue', import.meta.url), 'utf8', ); import { readFileSync } from 'node:fs'; import { test } from 'node:test'; import assert from 'node:assert/strict'; const html = await renderApplicationHtml( readFileSync(new URL('../index.html', import.meta.url), 'utf8'), ); const css = readStylesheet(new URL('../style.css', import.meta.url)); test('Contacts stays in the keyboard sequence and Space Missions owns its rail item', () => { const button = html.match( /