13 lines
468 B
TypeScript
13 lines
468 B
TypeScript
import { test, expect } from '@playwright/test';
|
|
|
|
test('#6 Location address should be clickable and open Google Maps', async ({ page }) => {
|
|
await page.goto('https://uat.dailykart.net/');
|
|
const locationLink = page.locator('text=Bengaluru, Karnataka - 562130');
|
|
|
|
const tagName = await locationLink.evaluate((el) => el.tagName);
|
|
expect(tagName).toBe('A');
|
|
|
|
const href = await locationLink.getAttribute('href');
|
|
expect(href).toContain('google.com/maps');
|
|
});
|