mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
chore(electron): speed up electron tests (#9871)
This commit is contained in:
@@ -97,19 +97,6 @@ export const test = base.extend<{
|
||||
// wait for blocksuite to be loaded
|
||||
await page.waitForSelector('v-line');
|
||||
|
||||
await page.evaluate(() => {
|
||||
window.localStorage.setItem('dismissAiOnboarding', 'true');
|
||||
window.localStorage.setItem('dismissAiOnboardingEdgeless', 'true');
|
||||
window.localStorage.setItem('dismissAiOnboardingLocal', 'true');
|
||||
});
|
||||
|
||||
await page.reload({
|
||||
timeout: 30000,
|
||||
});
|
||||
|
||||
// wait until the page is stable enough
|
||||
await page.waitForTimeout(2000);
|
||||
|
||||
await use(page as Page);
|
||||
},
|
||||
views: async ({ electronApp, page }, use) => {
|
||||
|
||||
Reference in New Issue
Block a user