Skip to content

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

499 B
Raw Blame
import { expect } from '@playwright/test'
import { test } from '../utils/test.js'
import { toUrl } from '../utils/to-url.js'

test.describe('Project', async () => {
  test('Can navigate to project home page', async ({ page, ref }) => {
    await page.goto(toUrl(`/project/${ref}`))

    // The home page has 2 variants (classic and new). Both render an H1 heading.
    // Assert on a stable, variant-agnostic selector.
    await expect(page.getByRole('heading', { level: 1 })).toBeVisible()
  })
})