@@ -9,7 +9,7 @@ let electronApp
99test . beforeAll ( async ( ) => {
1010 // find the latest build in the out directory
1111 const latestBuild = findLatestBuild (
12- path . join ( process . cwd ( ) , "release" , "0.0.0" ) ,
12+ path . join ( process . cwd ( ) , "release" , "0.0.0" )
1313 )
1414 console . log ( "latestBuild" , latestBuild )
1515 // parse the directory and find paths and other info
@@ -60,15 +60,15 @@ test("Microservices running", async () => {
6060 } )
6161} )
6262
63- test ( "Devtools" , async ( ) => {
64- const firstWindow = await electronApp . firstWindow ( )
65- const browserWindow = await electronApp . browserWindow ( firstWindow )
66- await browserWindow . evaluate ( async ( window ) => {
67- await window . webContents . openDevTools ( )
68- } )
63+ // test("Devtools", async () => {
64+ // const firstWindow = await electronApp.firstWindow()
65+ // const browserWindow = await electronApp.browserWindow(firstWindow)
66+ // await browserWindow.evaluate(async (window) => {
67+ // await window.webContents.openDevTools()
68+ // })
6969
70- await firstWindow . waitForTimeout ( ( isWindows ? 45 : 20 ) * 1000 )
71- await expect ( firstWindow ) . toHaveScreenshot ( {
72- path : `devtools-${ process . platform } .png` ,
73- } )
74- } )
70+ // await firstWindow.waitForTimeout((isWindows ? 45 : 20) * 1000)
71+ // await expect(firstWindow).toHaveScreenshot({
72+ // path: `devtools-${process.platform}.png`,
73+ // })
74+ // })
0 commit comments