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
20 changes: 14 additions & 6 deletions tests/e2e/specs/conference-filters.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ test.describe('Homepage Subject Filter', () => {
});

test.describe('Topic/Category Filtering', () => {
// bootstrap-multiselect renders its dropdown options off the small mobile
// viewport — clicking them fails with "Element is outside of the viewport"
// even with force. This desktop-dropdown interaction can't be driven
// reliably on mobile; mobile filtering is covered by the My Conferences
// "should work on mobile viewport" test below.
test.skip(
({ isMobile }) => Boolean(isMobile),
'bootstrap-multiselect dropdown interaction is desktop-only',
);

test('should filter conferences by Python category', async ({ page }) => {
// Open the multiselect dropdown
const multiselectButton = page.locator('.multiselect, button.multiselect').first();
Expand All @@ -69,9 +79,7 @@ test.describe('Homepage Subject Filter', () => {
// Skip if PY filter option not found
test.skip(pyOptionCount === 0, 'PY filter option not found in dropdown');

// force: bootstrap-multiselect options resolve but aren't always "actionable"
// on small (mobile) viewports, where they would otherwise time out.
await pyOption.click({ force: true });
await pyOption.click();
await page.waitForFunction(() => document.readyState === 'complete');

// Check that conferences are filtered - PY-conf class conferences should be visible
Expand All @@ -97,7 +105,7 @@ test.describe('Homepage Subject Filter', () => {
// Skip if DATA filter option not found
test.skip(dataOptionCount === 0, 'DATA filter option not found in dropdown');

await dataOption.click({ force: true });
await dataOption.click();
await page.waitForFunction(() => document.readyState === 'complete');

// Check that DATA conferences are shown
Expand Down Expand Up @@ -125,10 +133,10 @@ test.describe('Homepage Subject Filter', () => {
test.skip(pyCount === 0 && webCount === 0, 'No PY or WEB filter options found in dropdown');

if (pyCount > 0) {
await pyOption.click({ force: true });
await pyOption.click();
}
if (webCount > 0) {
await webOption.click({ force: true });
await webOption.click();
}

await page.waitForFunction(() => document.readyState === 'complete');
Expand Down