lgtm
This commit is contained in:
parent
084117cea8
commit
a8de0a614d
36 changed files with 1329 additions and 522 deletions
23
frontend/src/lib/active-filter-scroll.test.ts
Normal file
23
frontend/src/lib/active-filter-scroll.test.ts
Normal 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();
|
||||
});
|
||||
});
|
||||
|
|
@ -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 aren’t included in the public sitemap and shouldn’t be crawlable as public content.',
|
||||
body: 'Saved searches and shared links are intended for signed-in use. They aren’t included in the public sitemap and shouldn’t be crawlable as public content.',
|
||||
},
|
||||
{
|
||||
title: 'Search measurement without exposing private data',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue