chore: bump electron version (#7922)

This commit is contained in:
pengx17
2024-08-19 14:24:34 +00:00
parent f3930a9262
commit 9d42db56ca
16 changed files with 49 additions and 40 deletions

View File

@@ -20,13 +20,13 @@ type RoutePath = 'setting';
const getPageId = async (page: Page) => {
return page.evaluate(() => {
return (window.appInfo as any)?.viewId as string;
return (window.__appInfo as any)?.viewId as string;
});
};
const isActivePage = async (page: Page) => {
return page.evaluate(async () => {
return await (window as any).apis?.ui.isActiveTab();
return await (window as any).__apis?.ui.isActiveTab();
});
};
@@ -67,9 +67,14 @@ export const test = base.extend<{
},
page: async ({ electronApp }, use) => {
await expect
.poll(() => {
return electronApp.windows().length > 1;
})
.poll(
() => {
return electronApp.windows().length > 1;
},
{
timeout: 10000,
}
)
.toBeTruthy();
const page = await getActivePage(electronApp.windows());