- Updated current specification to reflect the integration of Staticcheck into pre-commit hooks. - Added problem statement, success criteria, and implementation plan for Staticcheck integration. - Enhanced QA validation report to confirm successful implementation of Staticcheck pre-commit blocking. - Created new Playwright configuration and example test cases for frontend testing. - Updated package.json and package-lock.json to include Playwright and related dependencies. - Archived previous QA report for CI workflow documentation updates.
20 lines
596 B
JavaScript
20 lines
596 B
JavaScript
// @ts-check
|
|
import { test, expect } from '@playwright/test';
|
|
|
|
test('has title', async ({ page }) => {
|
|
await page.goto('https://playwright.dev/');
|
|
|
|
// Expect a title "to contain" a substring.
|
|
await expect(page).toHaveTitle(/Playwright/);
|
|
});
|
|
|
|
test('get started link', async ({ page }) => {
|
|
await page.goto('https://playwright.dev/');
|
|
|
|
// Click the get started link.
|
|
await page.getByRole('link', { name: 'Get started' }).click();
|
|
|
|
// Expects page to have a heading with the name of Installation.
|
|
await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible();
|
|
});
|