Skip to content

Commit 7800540

Browse files
Nagi-ovocodex
andcommitted
test: remove obsolete absence assertions
Co-authored-by: Codex <codex@users.noreply.github.com>
1 parent ef3329f commit 7800540

3 files changed

Lines changed: 0 additions & 50 deletions

File tree

src/pages/content/export/__tests__/selectionModeInteraction.test.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,12 @@ import { resolve } from 'node:path';
33
import { describe, expect, it } from 'vitest';
44

55
describe('selection mode interaction', () => {
6-
it('uses checkbox-only selection without select-below behavior', () => {
7-
const code = readFileSync(resolve(process.cwd(), 'src/pages/content/export/index.ts'), 'utf8');
8-
9-
expect(code).not.toContain('gv-export-select-below-pill');
10-
expect(code).not.toContain('export_select_mode_select_below');
11-
expect(code).not.toContain('selectBelowIds(');
12-
expect(code).not.toContain('findSelectionStartIdAtLine(');
13-
});
14-
156
it('pins selection bar to top and uses top-center compact progress toast styles', () => {
167
const css = readFileSync(resolve(process.cwd(), 'public/contentStyle.css'), 'utf8');
178
const overlayBlock = css.match(/\.gv-export-progress-overlay\s*{([\s\S]*?)}/)?.[1] ?? '';
189
const cardBlock = css.match(/\.gv-export-progress-card\s*{([\s\S]*?)}/)?.[1] ?? '';
1910

2011
expect(css).toMatch(/\.gv-export-select-bar\s*{[\s\S]*top:\s*12px;/);
21-
expect(css).not.toContain('.gv-export-select-below-pill');
2212
expect(overlayBlock).toContain('position: fixed;');
2313
expect(overlayBlock).toContain('left: 50%;');
2414
expect(overlayBlock).toContain('transform: translateX(-50%);');

src/pages/content/sidebarWidth/__tests__/sidebarWidthCentering.test.ts

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -22,39 +22,6 @@ afterEach(() => {
2222
});
2323

2424
describe('sidebar width title centering', () => {
25-
it('does not override native center-section positioning', () => {
26-
const code = readFileSync(
27-
resolve(process.cwd(), 'src/pages/content/sidebarWidth/index.ts'),
28-
'utf8',
29-
);
30-
31-
expect(code).not.toContain('.center-section');
32-
expect(code).not.toContain('translate(-50%, -50%)');
33-
expect(code).not.toContain('left: 50% !important;');
34-
expect(code).not.toContain('left: clamp(');
35-
});
36-
37-
it('does not force top bar host transform/width overrides', () => {
38-
const code = readFileSync(
39-
resolve(process.cwd(), 'src/pages/content/sidebarWidth/index.ts'),
40-
'utf8',
41-
);
42-
43-
expect(code).not.toContain('#app-root > main > top-bar-actions {');
44-
expect(code).not.toContain('#app-root > main > .top-bar-actions {');
45-
expect(code).not.toContain('width: calc(100% - var(--gv-sidenav-shift)) !important;');
46-
});
47-
48-
it('does not override top-bar actions right-section to fixed', () => {
49-
const code = readFileSync(
50-
resolve(process.cwd(), 'src/pages/content/sidebarWidth/index.ts'),
51-
'utf8',
52-
);
53-
54-
expect(code).not.toContain('div.right-section > div:nth-child(2)');
55-
expect(code).not.toContain('position: fixed !important;');
56-
});
57-
5825
it('does not enable pointer events on all mode-switcher descendants', () => {
5926
const code = readFileSync(
6027
resolve(process.cwd(), 'src/pages/content/sidebarWidth/index.ts'),

src/pages/content/timeline/__tests__/TimelinePreviewPanel.test.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -296,13 +296,6 @@ describe('TimelinePreviewPanel', () => {
296296
expect(items[0]?.classList.contains('starred')).toBe(false);
297297
});
298298

299-
it('does not crowd starred items with bookmark timestamps', () => {
300-
panel.updateMarkers(makeMarkers(5));
301-
panel.open();
302-
303-
expect(document.querySelector('.timeline-preview-starred-time')).toBeNull();
304-
});
305-
306299
it('shows empty message when no markers', () => {
307300
panel.updateMarkers([]);
308301
panel.open();

0 commit comments

Comments
 (0)