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') })