Files
supabase/apps/studio/tests/features/reports/api-report.test.tsx
Jordi Enric 804f270c3a reports pricing (#36992)
* add database pricing config

* pricing paywalls

* fix showing correct charts

* fix test

* remove disabled helpers in favor of upsell dialog

* fix missing fn to calc time

* rm clog

* show badge next to helpers

* ui fix

* fix type errs

* fix hallucinated import fml
2025-07-14 16:45:29 +02:00

17 lines
612 B
TypeScript

import { screen } from '@testing-library/react'
import { test } from 'vitest'
import { ApiReport } from 'pages/project/[ref]/reports/api-overview'
import { customRender as render } from 'tests/lib/custom-render'
test(`Render static elements`, async () => {
render(<ApiReport dehydratedState={{}} />)
await screen.findByText('Total Requests')
await screen.findByText('Response Errors')
await screen.findByText('Response Speed')
await screen.findByText('Network Traffic')
await screen.findByText(/Last 60 minutes/)
await screen.findByText(/Add filter/)
await screen.findByText(/All Requests/)
})