You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { ElectronApplication } from '@playwright/test';
|
||||
|
||||
const waitForNextOpenPath = (electronApp: ElectronApplication) => {
|
||||
return electronApp.evaluate(async ({ shell }) => {
|
||||
return new Promise<string>(resolve => {
|
||||
const originalOpenPath = shell.openPath;
|
||||
shell.openPath = async (path: string) => {
|
||||
shell.openPath = originalOpenPath;
|
||||
resolve(path);
|
||||
return '';
|
||||
};
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
export default waitForNextOpenPath;
|
||||
Reference in New Issue
Block a user