Files
OSIT-AE-App-Svelte/tests/example.test.ts
Scott Idem 7e1eaba3bc feat: Migrate ESLint to flat config and resolve initial linting errors
Migrated the ESLint configuration to the new flat config format ()
and addressed several initial linting errors.

Key changes include:
- Updated ESLint configuration to treat  as warnings instead of errors.
- Fixed  errors in  by declaring  and .
- Corrected  error in  by using  instead of an out-of-scope .
- Resolved  error in  by replacing the undefined  directive with the  component.
- Addressed  errors in  by replacing  with  and  with .
- Fixed  errors in  by importing necessary modules (, , ) and adding missing props (, , , , ).
2025-11-17 18:46:54 -05:00

19 lines
584 B
TypeScript

import { test, expect } from '@playwright/test';
test('homepage has title and link', async ({ page }) => {
await page.goto('http://scott.localhost:5173/');
// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/SvelteKit/);
});
test('get started link', async ({ page }) => {
await page.goto('http://localhost:4173/');
// Click the get started link.
await page.getByRole('link', { name: 'Docs' }).click();
// Expects page to have a heading with the name of Installation.
await expect(page.getByRole('heading', { name: 'Welcome' })).toBeVisible();
});