File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,19 @@ const calculate = async () => {
33
33
await mouse . move ( straightTo ( centerOf ( screen . find ( "zero.png" ) ) ) ) ;
34
34
await mouse . leftClick ( ) ;
35
35
await mouse . leftClick ( ) ;
36
+ await mouse . move ( straightTo ( centerOf ( screen . find ( "equals.png" ) ) ) ) ;
37
+ await mouse . leftClick ( ) ;
36
38
} ;
37
39
38
40
const close = async ( ) => {
39
41
await mouse . move ( straightTo ( centerOf ( screen . find ( "close.png" ) ) ) ) ;
40
42
await mouse . leftClick ( ) ;
41
43
} ;
42
44
45
+ afterEach ( async ( ) => {
46
+ await keyboard . type ( Key . LeftControl , Key . LeftAlt , Key . D ) ;
47
+ } ) ;
48
+
43
49
describe ( "E2E screen test" , ( ) => {
44
50
it ( "should throw on invalid images" , async ( ) => {
45
51
jest . setTimeout ( 30000 ) ;
@@ -59,7 +65,6 @@ describe("E2E demo", () => {
59
65
await assert . isVisible ( "calculator.png" ) ;
60
66
await keyboard . type ( "525" ) ;
61
67
await calculate ( ) ;
62
- await keyboard . type ( Key . Enter ) ;
63
68
await assert . isVisible ( "result.png" ) ;
64
69
await close ( ) ;
65
70
} ) ;
You can’t perform that action at this time.
0 commit comments