소스 검색

test(e2e): improve fav robustness

Junyi Du 2 년 전
부모
커밋
54bd86aca7
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      e2e-tests/sidebar.spec.ts

+ 2 - 0
e2e-tests/sidebar.spec.ts

@@ -17,7 +17,9 @@ test('favorite item and recent item test', async ({ page }) => {
   // click from another page
   const another_page_name = await createRandomPage(page)
   expect(await page.innerText(':nth-match(.favorite-item a, 1)')).toBe(fav_page_name)
+  await page.waitForTimeout(500);
   await page.click(":nth-match(.favorite-item, 1)")
+  await page.waitForTimeout(500);
   expect(await page.innerText('.page-title .title')).toBe(fav_page_name)
 
   expect(await page.innerText(':nth-match(.recent-item a, 1)')).toBe(fav_page_name)