提交 fec426b3 编写于 作者: shutao-dc's avatar shutao-dc

update theme-change.test.js 补充主题还原代码 防止干预其他测试截图背景色

上级 8a9a5c07
...@@ -23,5 +23,8 @@ describe('API-theme-change', () => { ...@@ -23,5 +23,8 @@ describe('API-theme-change', () => {
await page.callMethod('setAppTheme', "dark") await page.callMethod('setAppTheme', "dark")
await page.waitFor(300) await page.waitFor(300)
expect(await page.data('appTheme')).toBe("dark") expect(await page.data('appTheme')).toBe("dark")
//还原主题为light
await page.callMethod('setAppTheme', "light")
await page.waitFor(600)
}) })
}); });
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册