From c54ead9432aeb06b314401b99471be60ac8c2feb Mon Sep 17 00:00:00 2001 From: Sameh Khamis Date: Sat, 14 Nov 2026 13:36:13 -0800 Subject: [PATCH] Test the rails' new layout and translate the edge switch CCTV and Context take the full right column when open, so the hysteresis tests use a content-sized panel, and a test covers the full-height rule. Co-authored-by: Manjunath Paparaju --- src/contextTabKeyboard.test.mjs | 163 ++++++++++++++++++++++------- src/i18n/locales/ar.json | 4 +- src/i18n/locales/de.json | 4 +- src/i18n/locales/es.json | 4 +- src/i18n/locales/fr.json | 4 +- src/i18n/locales/he.json | 4 +- src/i18n/locales/it.json | 4 +- src/i18n/locales/ja.json | 4 +- src/i18n/locales/pt.json | 4 +- src/i18n/locales/ru.json | 4 +- src/i18n/locales/sv.json | 4 +- src/i18n/locales/uk.json | 4 +- src/i18n/locales/zh-CN.json | 4 +- src/i18n/locales/zh-Hant.json | 4 +- src/ui/panelChromeButtons.test.mjs | 1 + src/ui/panelRails.test.mjs | 24 ++++- 16 files changed, 187 insertions(+), 53 deletions(-) diff --git a/src/contextTabKeyboard.test.mjs b/src/contextTabKeyboard.test.mjs index f50b30469..9ebd0e384 100644 --- a/src/contextTabKeyboard.test.mjs +++ b/src/contextTabKeyboard.test.mjs @@ -4,18 +4,31 @@ import { _selectContextMode } from './ui/contextTransactions.js'; import { _initGlobalContextPanel } from './ui/contextBindings.js'; import { clearSelectedLayers } from './ui/contextActions.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'); +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 html = await renderApplicationHtml( + readFileSync(new URL('../index.html', import.meta.url), 'utf8'), +); const css = readStylesheet(new URL('../style.css', import.meta.url)); test('Contacts and Space Missions both participate in the ordinary Tab sequence', () => { - for (const id of ['global-context-flights-btn', 'global-context-missions-btn']) { - const button = html.match(new RegExp(`