瀏覽代碼

fix(test): minor fix for e2e test

Andelf 3 年之前
父節點
當前提交
13aefde53c
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      e2e-tests/basic.spec.ts

+ 1 - 2
e2e-tests/basic.spec.ts

@@ -1,6 +1,6 @@
 import { test, expect } from '@playwright/test'
 import { ElectronApplication, Page, BrowserContext, _electron as electron } from 'playwright'
-import { randomString, createRandomPage, openSidebar, newBlock } from './utils'
+import { randomString, createRandomPage, openSidebar, newBlock, lastBlock } from './utils'
 
 let electronApp: ElectronApplication
 let context: BrowserContext
@@ -249,7 +249,6 @@ test('auto completion square brackets', async () => {
   await page.waitForSelector('text="Search for a page"', { state: 'visible' })
 
   // type more `]`s
-  await page.press(':nth-match(textarea, 1)', 'Escape')
   await page.type(':nth-match(textarea, 1)', ']')
   expect(await page.inputValue(':nth-match(textarea, 1)')).toBe('This is a [[]]')
   await page.type(':nth-match(textarea, 1)', ']')