19 lines
683 B
TypeScript
19 lines
683 B
TypeScript
import { test, expect } from '@playwright/test';
|
|
|
|
// Set the timeout for all tests in this file
|
|
test.setTimeout(60000); // 60 seconds
|
|
|
|
test('#2 Verify that each job listing displays a location', async ({ page }) => {
|
|
await page.goto('https://careers-page.com/linkstalent/?mode=preview', { waitUntil: 'domcontentloaded' });
|
|
|
|
const jobCards = page.locator('.job-element-in-list');
|
|
const count = await jobCards.count();
|
|
|
|
for (let i = 0; i < count; i++) {
|
|
const card = jobCards.nth(i);
|
|
const location = card.locator('.col-lg-6'); // Update selector as needed
|
|
expect(await location.isVisible()).toBe(true);
|
|
expect(await location.innerText()).not.toBe('');
|
|
}
|
|
});
|