11 lines
382 B
TypeScript
11 lines
382 B
TypeScript
import { test, expect } from '@playwright/test';
|
|
|
|
test('#5 Email link should use mailto protocol', async ({ page }) => {
|
|
await page.goto('https://uat.dailykart.net/');
|
|
const emailLink = page.locator('a[href^="mailto:"]');
|
|
|
|
await expect(emailLink).toBeVisible();
|
|
const href = await emailLink.getAttribute('href');
|
|
expect(href).toMatch(/^mailto:sales@dailykart\.com$/);
|
|
});
|