mirror of
https://github.com/microsoft/playwright.git
synced 2024-09-11 20:37:54 +03:00
parent
299d3d6074
commit
1c7a7fcf23
@ -142,8 +142,7 @@ export class Electron extends SdkObject {
|
||||
});
|
||||
|
||||
const waitForXserverError = new Promise(async (resolve, reject) => {
|
||||
await waitForLine(progress, launchedProcess, /Unable to open X display/);
|
||||
throw new Error([
|
||||
waitForLine(progress, launchedProcess, /Unable to open X display/).then(() => reject(new Error([
|
||||
'Unable to open X display!',
|
||||
`================================`,
|
||||
'Most likely this is because there is no X server available.',
|
||||
@ -151,7 +150,7 @@ export class Electron extends SdkObject {
|
||||
"For example: 'xvfb-run npm run test:e2e'",
|
||||
`================================`,
|
||||
progress.metadata.log
|
||||
].join('\n'));
|
||||
].join('\n')))).catch(() => {});
|
||||
});
|
||||
|
||||
const nodeMatch = await waitForLine(progress, launchedProcess, /^Debugger listening on (ws:\/\/.*)$/);
|
||||
|
Loading…
Reference in New Issue
Block a user