import { test, expect } from '@playwright/test';

test('has title', async ({ page }) => {
    await page.goto('/dashboard');

    // The actual title format is "suitex - suitex" (tenant - app name)
    await expect(page).toHaveTitle(/suitex/i);
});

test('dashboard loads', async ({ page }) => {
    await page.goto('/dashboard');

    // Use a more specific selector - target the heading element instead of generic text
    // This avoids matching debug toolbar and other "Dashboard" text occurrences
    await expect(page.getByRole('heading', { name: /dashboard/i })).toBeVisible();
});
