소스 검색

fix: page rename e2e test

Tienson Qin 1 년 전
부모
커밋
20a06f820d
1개의 변경된 파일0개의 추가작업 그리고 25개의 파일을 삭제
  1. 0 25
      e2e-tests/page-rename.spec.ts

+ 0 - 25
e2e-tests/page-rename.spec.ts

@@ -76,28 +76,3 @@ test('page rename test', async ({ page }) => {
   // expect(resultRow).not.toContain("DcBA_");
   // expect(resultRow).not.toContain("DcBA_");
   await closeSearchBox(page)
   await closeSearchBox(page)
 })
 })
-
-// TODO introduce more samples when #4722 is fixed
-test('page title property test', async ({ page }) => {
-  // Edit Title Property and Double Enter (ETPDE)
-  // exit editing via insert new block
-  let rand = randomLowerString(10)
-  let original_name = "etpde old" + rand
-  let new_name = "etpde new" + rand
-  await createPage(page, original_name)
-  // add some spaces to test if it is trimmed
-  await page.type(':nth-match(textarea, 1)', 'title:: ' + new_name + "     ")
-  await page.press(':nth-match(textarea, 1)', 'Enter') // DWIM property mode creates new line
-  await page.press(':nth-match(textarea, 1)', 'Enter')
-  expect(await page.innerText('.page-title .title')).toBe(new_name)
-
-  // Edit Title Property and Esc (ETPE)
-  // exit editing via moving out focus
-  rand = randomLowerString(10)
-  original_name = "etpe old " + rand
-  new_name = "etpe new " + rand
-  await createPage(page, original_name)
-  await page.type(':nth-match(textarea, 1)', 'title:: ' + new_name)
-  await page.press(':nth-match(textarea, 1)', 'Escape')
-  expect(await page.innerText('.page-title .title')).toBe(new_name)
-})