import { expect, test } from '@playwright/test'; test('homepage loads successfully', async ({ page }) => { await page.goto('/'); // Check that the page title contains CS2.WTF await expect(page.locator('h1')).toContainText('CS2'); await expect(page.locator('h1')).toContainText('.WTF'); // Check that navigation buttons are present await expect(page.locator('text=Browse Matches')).toBeVisible(); await expect(page.locator('text=View Demo Profile')).toBeVisible(); }); test('navigation to matches page works', async ({ page }) => { await page.goto('/'); // Click on Browse Matches button await page.locator('text=Browse Matches').click(); // URL should change to /matches await expect(page).toHaveURL('/matches'); });