From a3e59427418e8e1be5b8b78af0aab3522b4797a7 Mon Sep 17 00:00:00 2001 From: Anne_LXM Date: Thu, 15 Aug 2024 11:30:55 +0800 Subject: [PATCH] =?UTF-8?q?test(editor.test.js):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=97=A5=E6=9C=9F=E7=9A=84=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/editor/editor.test.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pages/component/editor/editor.test.js b/pages/component/editor/editor.test.js index fe09007f..cef1f326 100644 --- a/pages/component/editor/editor.test.js +++ b/pages/component/editor/editor.test.js @@ -47,19 +47,16 @@ describe('editor.uvue', () => { it('clear', async () => { await page.callMethod('clear') - await page.waitFor(500) expect(await editor.attribute("placeholder")).toBe("开始输入...") }) it('undo-redo', async () => { - await page.callMethod('insertDate') await page.callMethod('insertDivider') await page.waitFor(500) await page.callMethod('undo') await page.waitFor(500) expect(await page.data('undoTest')).toBe(true) await page.callMethod('redo') - await page.waitFor(500) expect(await page.data('redoTest')).toBe(true) }) @@ -82,7 +79,6 @@ describe('editor.uvue', () => { ]) await page.waitFor(500) await page.callMethod('removeFormat') - await page.waitFor(500) expect(await page.data('removeFormatTest')).toBe(true) expect(await page.data('formats')).toEqual({}) }) -- GitLab