From 0d4e769d538d547746cdba4c5e5d547c208ef66f Mon Sep 17 00:00:00 2001 From: WOSHIMAHAIFENG Date: Fri, 19 Apr 2024 12:12:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9file=20=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../get-file-system-manager.test.js | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/pages/API/get-file-system-manager/get-file-system-manager.test.js b/pages/API/get-file-system-manager/get-file-system-manager.test.js index 20e49fb9..0d32a69d 100644 --- a/pages/API/get-file-system-manager/get-file-system-manager.test.js +++ b/pages/API/get-file-system-manager/get-file-system-manager.test.js @@ -822,20 +822,21 @@ describe('ExtApi-FileManagerTest', () => { expect(statsRet.length).toEqual(1) expect(statsRet[0].path).toMatch(new RegExp('.*/a/1.txt$')) expect(statsRet[0].stats.size).toEqual(69) + if (isAndroid()) { + // 写入一个文件 + await page.setData({ + statsRet: '' + }) + btnStatFileButton = await page.$('#btn-stat-file-sync') + await btnStatFileButton.tap() + await isDone() - // 写入一个文件 - await page.setData({ - statsRet: '' - }) - btnStatFileButton = await page.$('#btn-stat-file-sync') - await btnStatFileButton.tap() - await isDone() - - // 读取单个文件信息 - statsRet = await getData('statsRet') - expect(statsRet.length).toEqual(1) - expect(statsRet[0].path).toMatch(new RegExp('.*/a/1.txt$')) - expect(statsRet[0].stats.size).toEqual(69) + // 读取单个文件信息 + statsRet = await getData('statsRet') + expect(statsRet.length).toEqual(1) + expect(statsRet[0].path).toMatch(new RegExp('.*/a/1.txt$')) + expect(statsRet[0].stats.size).toEqual(69) + } /** * 创建子目录和子目录文件,测试recursive参数 -- GitLab