mirror of
https://github.com/supabase/supabase.git
synced 2026-06-09 03:22:27 +08:00
* **Refactor** * Status banner now displays only ongoing incidents, no longer shows maintenance events * Removed persistent banner dismissal state
18 lines
641 B
TypeScript
18 lines
641 B
TypeScript
import { expect } from '@playwright/test'
|
|
|
|
import { test } from '../utils/test.js'
|
|
import { toUrl } from '../utils/to-url.js'
|
|
|
|
test.describe('StatusPageBanner', () => {
|
|
test('incident banner does not show when no incident flag is set', async ({ page, ref }) => {
|
|
await page.goto(toUrl(`/project/${ref}`))
|
|
|
|
// Wait for page to load
|
|
await expect(page.getByRole('heading', { level: 1 })).toBeVisible({ timeout: 15000 })
|
|
|
|
// Verify the incident banner is NOT visible (no flag is set)
|
|
const incidentBanner = page.getByText('We are investigating a technical issue')
|
|
await expect(incidentBanner).not.toBeVisible()
|
|
})
|
|
})
|