mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
fix: unit test
This commit is contained in:
1 parent
8dbc22239f
commit
949a80bcf8
1 file changed
+2
-2
+2
-2
@@ -227,11 +227,11 @@ describe('ViewTokenSheet', () => {
|
||||
expect(screen.getByText('Backups')).toBeInTheDocument()
|
||||
|
||||
// The All/Read/Read-write toggle sits next to the "Capabilities" title, not a text filter.
|
||||
fireEvent.click(screen.getByRole('button', { name: 'Read-write' }))
|
||||
fireEvent.click(screen.getByRole('radio', { name: 'Read-write' }))
|
||||
expect(screen.getByText('Database')).toBeInTheDocument()
|
||||
expect(screen.queryByText('Backups')).toBeNull()
|
||||
|
||||
fireEvent.click(screen.getByRole('button', { name: 'Read' }))
|
||||
fireEvent.click(screen.getByRole('radio', { name: 'Read' }))
|
||||
expect(screen.queryByText('Database')).toBeNull()
|
||||
expect(screen.getByText('Backups')).toBeInTheDocument()
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user