From f728b568ede2549e3f80de473db5d07674dc7eba Mon Sep 17 00:00:00 2001 From: Maurice Date: Sun, 15 Nov 2026 20:39:19 +0100 Subject: [PATCH] test(plugins): avoid a non-null assertion in the new frame visibility tests The added test used querySelector('iframe')! which pushes the tests no-non-null-assertion count one over its frozen baseline; cast instead. --- client/src/components/Plugins/PluginFrame.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/Plugins/PluginFrame.test.tsx b/client/src/components/Plugins/PluginFrame.test.tsx index dbf7d1eb1..c5381a74a 100644 --- a/client/src/components/Plugins/PluginFrame.test.tsx +++ b/client/src/components/Plugins/PluginFrame.test.tsx @@ -975,7 +975,7 @@ describe('PluginFrame visibility and mobile suspend', () => { it('FE-PLUGINS-FRAME-062: tells the plugin when it leaves the screen', () => { const { container } = render(); - const iframe = container.querySelector('iframe')!; + const iframe = container.querySelector('iframe') as HTMLIFrameElement; const posted: Array> = []; (iframe.contentWindow as unknown as { postMessage: (m: unknown) => void }).postMessage = (m) => posted.push(m as Record); fire(false);