mirror of
https://github.com/supabase/supabase.git
synced 2026-10-14 21:59:16 +03:00
fix storage report test
This commit is contained in:
1 parent
6452ecff63
commit
40f8a7b751
1 file changed
+3
-3
@@ -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(<StorageReport dehydratedState={{}} />)
|
||||
customRender(<StorageReport dehydratedState={{}} />)
|
||||
await screen.findByText('Request Caching')
|
||||
await screen.findByText(/Last 24 hours/)
|
||||
})
|
||||
|
||||
test.skip('Render top cache misses', async () => {
|
||||
render(<StorageReport dehydratedState={{}} />)
|
||||
customRender(<StorageReport dehydratedState={{}} />)
|
||||
await screen.findAllByText('/storage/v1/object/public/videos/marketing/tabTableEditor.mp4')
|
||||
await screen.findAllByText('2')
|
||||
})
|
||||
Reference in new issue
Block a user