Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions tests/e2e/specs/search-functionality.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ test.describe('Search Functionality', () => {
});

test.describe('Search Results Display', () => {
test('should display conference details in results', async ({ page }) => {
test('should display conference details in results', async ({ page }, testInfo) => {
const searchInput = await getVisibleSearchInput(page);

// Search for conferences
Expand All @@ -173,10 +173,13 @@ test.describe('Search Functionality', () => {
await expect(deadline.first()).toBeVisible();
}

// Check for location
const location = firstResult.locator('.conf-place, .location, .place');
if (await location.count() > 0) {
await expect(location.first()).toBeVisible();
// Check for location (hidden on mobile viewports via CSS)
const isMobile = testInfo.project.name.includes('mobile');
if (!isMobile) {
const location = firstResult.locator('.conf-place, .location, .place');
if (await location.count() > 0) {
await expect(location.first()).toBeVisible();
}
}
}
});
Expand Down