fix(electron): fix tab view blink issue on open new tab (#7748)

fix AF-1197
This commit is contained in:
pengx17
2024-08-06 15:57:40 +00:00
parent 744cc542de
commit c2cf331ff7
10 changed files with 105 additions and 84 deletions

View File

@@ -140,10 +140,8 @@ export const test = base.extend<{
await use(electronApp);
console.log('Cleaning up...');
const pages = electronApp.windows();
for (let i = 0; i < pages.length; i++) {
const page = pages[i];
for (const page of pages) {
await page.close();
console.log(`Closed page ${i + 1}/${pages.length}`);
}
await electronApp.close();
await removeWithRetry(clonedDist);