From 40f8a7b75197eef3a649de5d641cc6309e9e2d4d Mon Sep 17 00:00:00 2001 From: Jordi Enric Date: Wed, 18 Jun 2025 13:00:13 +0200 Subject: [PATCH] fix storage report test --- apps/studio/tests/features/reports/storage-report.test.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/studio/tests/features/reports/storage-report.test.tsx b/apps/studio/tests/features/reports/storage-report.test.tsx index eeb34ddcce6..8a80e772886 100644 --- a/apps/studio/tests/features/reports/storage-report.test.tsx +++ b/apps/studio/tests/features/reports/storage-report.test.tsx @@ -2,7 +2,7 @@ import { screen } from '@testing-library/react' import { test } from 'vitest' import { StorageReport } from 'pages/project/[ref]/reports/storage' -import { render } from 'tests/helpers' +import { customRender } from 'tests/lib/custom-render' // [Joshen] Mock data for ApiReport is in __mocks__/hooks/useStorageReport // I don't think this is an ideal set up as the mock data is not clear in this file itself @@ -11,13 +11,13 @@ import { render } from 'tests/helpers' // I'd be keen to see how we can do this better if anyone is more familiar to jest 🙏 test.skip(`Render static elements`, async () => { - render() + customRender() await screen.findByText('Request Caching') await screen.findByText(/Last 24 hours/) }) test.skip('Render top cache misses', async () => { - render() + customRender() await screen.findAllByText('/storage/v1/object/public/videos/marketing/tabTableEditor.mp4') await screen.findAllByText('2') })