initial
This commit is contained in:
8
web/tests/e2e/hero.spec.ts
Normal file
8
web/tests/e2e/hero.spec.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
test('hero renders and CTA works', async ({ page }) => {
|
||||
await page.goto('http://localhost:3000');
|
||||
await expect(page.getByRole('heading', { name: /Electricians in Corpus Christi/i })).toBeVisible();
|
||||
const cta = page.getByRole('link', { name: /Get My Free Quote/i }).first();
|
||||
await expect(cta).toBeVisible();
|
||||
});
|
||||
Reference in New Issue
Block a user