The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: add failing test for expandable api request table
TzeYiingf3722bd9b752
diff --git a/studio/tests/pages/projects/reports/api-report.test.js b/studio/tests/pages/projects/reports/api-report.test.jsindex 92cb474d077..76fb91aa91c 100644--- a/studio/tests/pages/projects/reports/api-report.test.js+++ b/studio/tests/pages/projects/reports/api-report.test.js@@ -26,3 +26,16 @@ test('refresh button', async () => {userEvent.click(await screen.findByText(/Refresh/))await waitFor(() => expect(get).toBeCalled())})++test('expandable tables', async () => {+ get.mockImplementation(async (_url) => [+ { data: [{ timestamp: new Date().toISOString(), count: 123 }] },+ ])+ const expandables = await screen.findByText('View API requests')+ const first = expandables[0]+ get.mockImplementationOnce(async (_url) => [{ data: [{ path: '/my-path', count: 22 }] }])+ userEvent.click(first)+ await screen.findByText('Hide API Requests')+ await screen.findByText(/\/my\-path/)+ await screen.findByText(/22/)+})