You've already forked joplin
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:
@@ -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);
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user