Files
supabase/apps/studio/components/layouts/APIKeys/APIKeysLayout.test.tsx
kemal.earth 38ae9fea1c feat(studio): add admonition for api keys settings view (#52250)
## Problem

API Keys Settings view needs updating.

## Solution

Added admonition with update and link to docs.
2026-11-02 16:26:42 +00:00

20 lines
629 B
TypeScript

import { screen } from '@testing-library/react'
import { describe, expect, it } from 'vitest'
import ApiKeysLayout from './APIKeysLayout'
import { customRender } from '@/tests/lib/custom-render'
describe('ApiKeysLayout', () => {
it('renders its children without tabs', () => {
customRender(
<ApiKeysLayout>
<div>content</div>
</ApiKeysLayout>
)
expect(screen.getByText('content')).toBeInTheDocument()
expect(screen.queryByText('Publishable and secret API keys')).not.toBeInTheDocument()
expect(screen.queryByText('Legacy anon, service_role API keys')).not.toBeInTheDocument()
})
})