mirror of
https://github.com/penpot/penpot.git
synced 2026-04-04 02:12:58 +02:00
🔧 Put a timeout option to requestIdleCallback (text editor tests)
This commit is contained in:
@@ -108,7 +108,9 @@ export class WorkspacePage extends BaseWebSocketPage {
|
||||
}
|
||||
|
||||
async waitForIdle() {
|
||||
await this.page.evaluate(() => new Promise((resolve) => globalThis.requestIdleCallback(resolve)));
|
||||
await this.page.evaluate(() => new Promise((resolve) => globalThis.requestIdleCallback(resolve, {
|
||||
timeout: 5000,
|
||||
})));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user