60d971d11986
fix stale Export menu test (two formats not three) and guard document.fonts in RecoveryRuneBackground for jsdom — 261/261 passing
- time
- 2026-05-07 14:42 UTC · 5 months ago
- machine
- koh2
- parent
- 25d2a3259624
↓ peach-browser-60d971d1.tar.gzatlas at this save
files changed2 files
src/popup/components/RecoveryRuneBackground.tsx+3 −1src/popup/views/contracts.test.tsx+1 −2src/popup/components/RecoveryRuneBackground.tsx+3 −1
@@ -132,7 +132,9 @@132132 else start();133133 };134134 document.addEventListener("visibilitychange", onVisibility);135- document.fonts.load(`${FONT_SIZE}px PeachScript`).finally(start);135+ const fontReady = document.fonts?.load(`${FONT_SIZE}px PeachScript`);136+ if (fontReady) fontReady.finally(start);137+ else start();136138 137139 onCleanup(() => {138140 stop();src/popup/views/contracts.test.tsx+1 −2
@@ -249,12 +249,11 @@249249 expect(onUnlock).not.toHaveBeenCalled();250250 });251251 252- it("Export menu surfaces the three v2.5.0 backup formats", async () => {252+ it("Export menu surfaces both backup formats", async () => {253253 const container = mount(<ExportView onBack={vi.fn()} />);254254 await flushView();255255 256256 expect(container.textContent).toContain("PeachScript");257- expect(container.textContent).toContain("print backup");258257 expect(container.textContent).toContain("CSV");259258 });260259