Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

added assertion for hiding LogPanel on custom mode

TzeYiing480e86c3e1e7
diff --git a/studio/tests/pages/projects/LogPanel.test.js b/studio/tests/pages/projects/LogPanel.test.js
index 35afe931a27..285cf0838ed 100644
--- a/studio/tests/pages/projects/LogPanel.test.js
+++ b/studio/tests/pages/projects/LogPanel.test.js
@@ -17,7 +17,12 @@ test('templates', async () => {
// userEvent.click(screen.getByText("Some option"))
// expect(mockFn).toBeCalled()
})
-
+test('custom mode', async () => {
+ render(<LogPanel isCustomQuery />)
+ await waitFor(() => {
+ expect(() => screen.getByPlaceholderText(/Search/)).toThrow()
+ })
+})
test('filter input change and submit', async () => {
const mockFn = jest.fn()
render(<LogPanel onSearch={mockFn} />)