Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dsheiko committed Feb 19, 2020
1 parent 1d50212 commit e215bd7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,17 @@ function createWindow() {
minWidth: 960,
minHeight: 540,
frame: false,
devTools: process.env.ELECTRON_ENV === "dev",
devTools: false,
title: "Puppetry",
icon
}, position ));

mainWindow.webContents.on("did-frame-finish-load", () => {
if ( process.env.ELECTRON_ENV === "dev" ) {
mainWindow.webContents.openDevTools();
}
});

// and load the index.html of the app.
mainWindow.loadURL( url.format({
pathname: path.join( __dirname, "index.html" ),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"faker": "^4.1.0",
"hotkeys-js": "^3.3.8",
"immutability-helper": "^3.0.1",
"isomorphic-git": "^0.54.2",
"isomorphic-git": "^0.78.4",
"jest": "^24.9.0",
"jest-cli": "^24.9.0",
"lodash.debounce": "^4.0.8",
Expand Down
2 changes: 1 addition & 1 deletion src/component/Schema/Params/Page/assertResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const assertResponse = {
( command.params && command.params.waitFor )
? `
searchStr = ${ JSON.stringify( command.assert.url ) }.replace( /^\./, "" );
await bs.page.waitForResponse( ( rsp ) => rsp.url().includes( searchStr ), {"timeout":30000} );`
await bs.page.waitForResponse( ( rsp ) => rsp.url().includes( searchStr ) );`
: `` }
await bs.network.waitUntilResolved();`

Expand Down

0 comments on commit e215bd7

Please sign in to comment.