This commit is contained in:
Andras Schmelczer 2026-05-14 22:07:14 +01:00
parent 084117cea8
commit a8de0a614d
36 changed files with 1329 additions and 522 deletions

View file

@ -0,0 +1,23 @@
import { describe, expect, it } from 'vitest';
import { findActiveFilterElement } from './active-filter-scroll';
describe('findActiveFilterElement', () => {
it('returns the newest matching repeated filter card', () => {
const root = document.createElement('div');
root.innerHTML = `
<div data-filter-name="Schools" data-card="first"></div>
<div data-filter-name="price" data-card="price"></div>
<div data-filter-name="Schools" data-card="latest"></div>
`;
expect(findActiveFilterElement(root, 'Schools')?.dataset.card).toBe('latest');
});
it('matches filter names with selector-special characters', () => {
const root = document.createElement('div');
root.innerHTML = '<div data-filter-name="Political vote share:%25%20Labour:1"></div>';
expect(findActiveFilterElement(root, 'Political vote share:%25%20Labour:1')).not.toBeNull();
});
});

View file

@ -718,7 +718,7 @@ export const SEO_CONTENT_PAGES: Record<SeoContentKey, SeoContentPage> = {
},
{
title: 'Saved search data is account-scoped',
body: 'Saved searches and properties are intended for signed-in use. They arent included in the public sitemap and shouldnt be crawlable as public content.',
body: 'Saved searches and shared links are intended for signed-in use. They arent included in the public sitemap and shouldnt be crawlable as public content.',
},
{
title: 'Search measurement without exposing private data',