Browse Source

fix: e2e tests

Tienson Qin 1 year ago
parent
commit
1815f874fe
1 changed files with 6 additions and 0 deletions
  1. 6 0
      e2e-tests/editor.spec.ts

+ 6 - 0
e2e-tests/editor.spec.ts

@@ -14,6 +14,12 @@ import { dispatch_kb_events } from './util/keyboard-events'
 import * as kb_events from './util/keyboard-events'
 
 test('hashtag and quare brackets in same line #4178', async ({ page }) => {
+  try {
+    await page.waitForSelector('.notification-clear', { timeout: 10 })
+    page.click('.notification-clear')
+  } catch (error) {
+  }
+
   await createRandomPage(page)
 
   await page.type('textarea >> nth=0', '#foo bar')