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 (, , , , ).
19 lines
584 B
TypeScript
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();
|
|
});
|