diff --git a/src/renderer/modals/subtitle-sidebar-selection.test.ts b/src/renderer/modals/subtitle-sidebar-selection.test.ts index 30424bb9..d1a7635d 100644 --- a/src/renderer/modals/subtitle-sidebar-selection.test.ts +++ b/src/renderer/modals/subtitle-sidebar-selection.test.ts @@ -8,12 +8,15 @@ import test from 'node:test'; import { build } from 'esbuild'; // This check opens Electron and uses the clipboard. Keep it out of normal code-only lanes. -test( +const electronTest = + process.env.SUBMINER_ELECTRON_TESTS === '1' && + (process.platform !== 'linux' || process.env.DISPLAY) + ? test + : test.skip; + +electronTest( 'sidebar selection copies clean chronological text without seeking or losing context', { - skip: - process.env.SUBMINER_ELECTRON_TESTS !== '1' || - (process.platform === 'linux' && !process.env.DISPLAY), timeout: 30_000, }, async () => {