From fec426b3bf3744bff7f5d6e528d9b39245c90bd7 Mon Sep 17 00:00:00 2001 From: shutao Date: Wed, 12 Jun 2024 11:43:23 +0800 Subject: [PATCH] =?UTF-8?q?update=20theme-change.test.js=20=E8=A1=A5?= =?UTF-8?q?=E5=85=85=E4=B8=BB=E9=A2=98=E8=BF=98=E5=8E=9F=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=20=E9=98=B2=E6=AD=A2=E5=B9=B2=E9=A2=84=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=88=AA=E5=9B=BE=E8=83=8C=E6=99=AF=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/theme-change/theme-change.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pages/API/theme-change/theme-change.test.js b/pages/API/theme-change/theme-change.test.js index 0dcdb3a3..779e9ef4 100644 --- a/pages/API/theme-change/theme-change.test.js +++ b/pages/API/theme-change/theme-change.test.js @@ -23,5 +23,8 @@ describe('API-theme-change', () => { await page.callMethod('setAppTheme', "dark") await page.waitFor(300) expect(await page.data('appTheme')).toBe("dark") + //还原主题为light + await page.callMethod('setAppTheme', "light") + await page.waitFor(600) }) }); -- GitLab