File tree 1 file changed +4
-4
lines changed
test/window-integration-tests
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -67,11 +67,11 @@ describe("getActiveWindow", () => {
67
67
// GIVEN
68
68
const xPosition = 42 ;
69
69
const yPosition = 25 ;
70
- await app . browserWindow . setPosition ( xPosition , yPosition ) ;
71
- await sleep ( 1000 ) ;
72
70
73
71
// WHEN
74
72
const activeWindowHandle = libnut . getActiveWindow ( ) ;
73
+ libnut . moveWindow ( activeWindowHandle , { x : xPosition , y : yPosition } ) ;
74
+ await sleep ( 1000 ) ;
75
75
const activeWindowRect = libnut . getWindowRect ( activeWindowHandle ) ;
76
76
77
77
// THEN
@@ -83,11 +83,11 @@ describe("getActiveWindow", () => {
83
83
// GIVEN
84
84
const newWidth = 400 ;
85
85
const newHeight = 250 ;
86
- await app . browserWindow . setSize ( newWidth , newHeight ) ;
87
- await sleep ( 1000 ) ;
88
86
89
87
// WHEN
90
88
const activeWindowHandle = libnut . getActiveWindow ( ) ;
89
+ libnut . resizeWindow ( activeWindowHandle , { width : newWidth , height : newHeight } ) ;
90
+ await sleep ( 1000 ) ;
91
91
const activeWindowRect = libnut . getWindowRect ( activeWindowHandle ) ;
92
92
93
93
// THEN
You can’t perform that action at this time.
0 commit comments