1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Chore: Tests: Improve Playwright test reliability (#10981)

This commit is contained in:
Henry Heino
2024-09-04 04:14:12 -07:00
committed by GitHub
parent 0b13dbddd8
commit e41394b57f
10 changed files with 66 additions and 52 deletions

View File

@@ -56,6 +56,13 @@ export const test = base.extend<JoplinFixtures>({
mainWindow: async ({ electronApp }, use) => {
const mainWindow = await firstNonDevToolsWindow(electronApp);
// Setting the viewport size helps keep test environments consistent.
await mainWindow.setViewportSize({
width: 1200,
height: 800,
});
await use(mainWindow);
},
});