diff --git a/lxl-web/src/lib/utils/addDefaultSearchParams.test.ts b/lxl-web/src/lib/utils/addDefaultSearchParams.test.ts index ea54d41b1..4c14efa58 100644 --- a/lxl-web/src/lib/utils/addDefaultSearchParams.test.ts +++ b/lxl-web/src/lib/utils/addDefaultSearchParams.test.ts @@ -8,7 +8,8 @@ describe('addDefaultSearchParams', () => { ['_q', '*'], ['_limit', '20'], ['_offset', '0'], - ['_sort', ''] + ['_sort', ''], + ['_spell', 'true'] ]) ); }); @@ -18,7 +19,8 @@ describe('addDefaultSearchParams', () => { ['_q', 'test'], ['_limit', '20'], ['_offset', '0'], - ['_sort', ''] + ['_sort', ''], + ['_spell', 'true'] ]) ); }); @@ -28,7 +30,8 @@ describe('addDefaultSearchParams', () => { ['_offset', '30'], ['_q', '*'], ['_limit', '20'], - ['_sort', ''] + ['_sort', ''], + ['_spell', 'true'] ]) ); }); diff --git a/lxl-web/tests/index.spec.ts b/lxl-web/tests/index.spec.ts index 2372427dc..e0299be07 100644 --- a/lxl-web/tests/index.spec.ts +++ b/lxl-web/tests/index.spec.ts @@ -34,5 +34,7 @@ test('url is populated with correct searchparams', async ({ page }) => { await page.getByTestId('main-search').click(); await page.getByTestId('main-search').fill('somephrase'); await page.getByTestId('main-search').press('Enter'); - await expect(page).toHaveURL(/_q=somephrase&_limit=20&_offset=0&_sort=&_i=somephrase/); + await expect(page).toHaveURL( + /_q=somephrase&_limit=20&_offset=0&_sort=&_spell=true&_i=somephrase/ + ); });