17 lines
589 B
TypeScript
17 lines
589 B
TypeScript
import { test, expect } from '@playwright/test';
|
|
|
|
test('#4 B2B page image should be properly sized and aligned', async ({ page }) => {
|
|
await page.goto('https://uat.dailykart.net/b2b');
|
|
|
|
const b2bImage = page.locator('.about-img .img-responsive').first();
|
|
|
|
await expect(b2bImage).toBeVisible({ timeout: 10000 });
|
|
|
|
const imageSize = await b2bImage.boundingBox();
|
|
|
|
expect(imageSize?.width).toBeGreaterThan(100); // or appropriate min width
|
|
expect(imageSize?.height).toBeGreaterThan(50); // adjusted min height
|
|
|
|
expect(imageSize?.x).toBeLessThan(500); // should be on left
|
|
});
|