AVT-914 [Spectron][Windows] Add test "Keep size and position of the windows in previous session" (#430)

This commit is contained in:
thaisym1912
2018-08-01 00:04:45 +07:00
committed by Vishwas Shashidhar
parent f0de24ccf6
commit 7791d5b39a
10 changed files with 227 additions and 61 deletions

View File

@@ -215,7 +215,7 @@ function doCreateMainWindow(initialUrl, initialBounds, isCustomTitleBar) {
mainWindow.webContents.send('window-leave-full-screen');
});
if (initialBounds && !isNodeEnv) {
if (initialBounds) {
// maximizes the application if previously maximized
if (initialBounds.isMaximized) {
mainWindow.maximize();