diff --git a/pages/API/theme-change/theme-change.test.js b/pages/API/theme-change/theme-change.test.js index 0dcdb3a3dc236ac010c9c98c6e7c0c1a1e6c647d..779e9ef4313b24220628060fe74adb2015108170 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) }) });