Browse Source

fix(e2e): page search results

Andelf 1 năm trước cách đây
mục cha
commit
95461d8a8a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      e2e-tests/page-search.spec.ts

+ 1 - 1
e2e-tests/page-search.spec.ts

@@ -39,7 +39,7 @@ test('Search page and blocks (diacritics)', async ({ page, block }) => {
 
   // check if diacritics are indexed
   const results = await searchPage(page, 'Einführung in die Allgemeine Sprachwissenschaft' + rand)
-  await expect(results.length).toEqual(5) // 1 page + 2 block + 2 page content
+  await expect(results.length).toEqual(6) // 1 page + 2 block + 2 page content + 1 current page
   await closeSearchBox(page)
 })