17 lines
577 B
TypeScript
17 lines
577 B
TypeScript
import { test, expect } from '@playwright/test';
|
|
|
|
test('#1 About Us image should be reasonably sized',
|
|
async ({ page }) => {
|
|
await page.goto('https://uat.dailykart.net/');
|
|
|
|
const aboutSectionImage = page.locator('#about-us-section img'); // update selector if needed
|
|
await expect(aboutSectionImage).toBeVisible();
|
|
|
|
const imageSize = await aboutSectionImage.boundingBox();
|
|
expect(imageSize?.width).toBeGreaterThan(400);
|
|
expect(imageSize?.height).toBeGreaterThan(200);
|
|
},
|
|
{ timeout: 60000 } // ✅ apply test-level timeout
|
|
);
|
|
|