Skip to content

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

Fix an ambiguous selector in the tests which caused the test to fail.

Ivan Vasilovc1fe1d0ea6b9
diff --git a/studio/tests/pages/projects/logs-query.test.js b/studio/tests/pages/projects/logs-query.test.js
index edb1c28c0f3..ef81e455226 100644
--- a/studio/tests/pages/projects/logs-query.test.js
+++ b/studio/tests/pages/projects/logs-query.test.js
@@ -178,7 +178,7 @@ test('bug: can edit query after selecting a log', async () => {
const rowValue = await screen.findByText(/12345/) // row value
// open up an show selection panel
await userEvent.click(rowValue)
- await screen.findByText(/Copy/)
+ await screen.findByText('Copy')
// change the query
let editor = container.querySelector('.monaco-editor')
@@ -197,7 +197,7 @@ test('bug: can edit query after selecting a log', async () => {
{ timeout: 1000 }
)
// closes the selection panel
- await expect(screen.findByText(/Copy/)).rejects.toThrow()
+ await expect(screen.findByText('Copy')).rejects.toThrow()
})
test('query warnings', async () => {