links-talent-playwright-tests/tests/quote-visibility-mobile.spec.ts

21 lines
763 B
TypeScript

import { test, expect } from '@playwright/test';
test.describe('Mobile View - "Our Geographic Reach" Section', () => {
test('#14 Verify quote overlay is NOT visible in mobile view', async ({ page }) => {
// Set viewport to mobile size
await page.setViewportSize({ width: 375, height: 812 });
// Navigate to the homepage
await page.goto('https://linkstalent.com'); // Replace with actual URL
// Wait for section to load (optional if lazy loaded)
await page.waitForLoadState('networkidle');
// Try to locate the quote
const quoteText = page.locator('text="We like to best every pleasure to be the welcomed and everys"');
// Check that it is NOT visible in mobile view
await expect(quoteText).toHaveCount(0);
});
});