up
This commit is contained in:
+6
-1
@@ -317,7 +317,7 @@ app.whenReady().then(async () => {
|
||||
}
|
||||
assert.equal(await evaluate('typeof window.require'), 'undefined')
|
||||
assert.equal((await evaluate('window.screenBridge.packages()')).length, 1)
|
||||
if (process.argv.includes('--intro-waveform'))
|
||||
if (process.argv.includes('--intro-waveform') || process.argv.includes('--previews'))
|
||||
await evaluate(`window.screenBridge.selectPackage(${JSON.stringify(offlinePackage.key)})`)
|
||||
await evaluate(`window.screenBridge.show(${targetDisplay.id})`)
|
||||
let output = await poll(
|
||||
@@ -328,6 +328,11 @@ app.whenReady().then(async () => {
|
||||
BrowserWindow.getAllWindows()
|
||||
.find((w) => w.webContents.getURL() === 'screen-app://app/index.html?output=1')
|
||||
.webContents.executeJavaScript(source)
|
||||
if (process.argv.includes('--previews')) {
|
||||
await require('./previews-smoke.cjs')({ control, output, evaluate, inspect, state, command, poll, targetDisplay })
|
||||
app.exit(0)
|
||||
return
|
||||
}
|
||||
if (process.argv.includes('--intro-waveform')) {
|
||||
const selectedDevice = (await evaluate('window.screenBridge.host()')).audioOutputs
|
||||
.find(device => device.id && !['default', 'communications'].includes(device.id))
|
||||
|
||||
Reference in New Issue
Block a user