import { test, expect } from '@playwright/test'; test('#5 Email link should use mailto protocol', async ({ page }) => { await page.goto('https://uat.dailykart.net/', { waitUntil: 'load' }); // Scroll to the bottom to reveal the footer await page.mouse.wheel(0, 3000); const emailLink = page.locator('a[href^="mailto:"]').first(); await emailLink.scrollIntoViewIfNeeded(); await expect(emailLink).toBeVisible({ timeout: 10000 }); const href = await emailLink.getAttribute('href'); expect(href).toBe('mailto:sales@dailykart.com'); });