dailykart-testing/tests/location-info.spec.ts

16 lines
514 B
TypeScript

import { test, expect } from '@playwright/test';
test('#6 Location address should be visible', async ({ page }) => {
await page.goto('https://uat.dailykart.net/', { waitUntil: 'load' });
// Scroll to contact section
await page.mouse.wheel(0, 3000);
const container = page.locator('.contact-info-dec', { hasText: 'Bengaluru' }).first();
await container.scrollIntoViewIfNeeded();
await expect(container).toContainText('Bengaluru');
await expect(container).toContainText('Karnataka - 562130');
});