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 () => {
3333 await mouse . move ( straightTo ( centerOf ( screen . find ( "zero.png" ) ) ) ) ;
3434 await mouse . leftClick ( ) ;
3535 await mouse . leftClick ( ) ;
36+ await mouse . move ( straightTo ( centerOf ( screen . find ( "equals.png" ) ) ) ) ;
37+ await mouse . leftClick ( ) ;
3638} ;
3739
3840const close = async ( ) => {
3941 await mouse . move ( straightTo ( centerOf ( screen . find ( "close.png" ) ) ) ) ;
4042 await mouse . leftClick ( ) ;
4143} ;
4244
45+ afterEach ( async ( ) => {
46+ await keyboard . type ( Key . LeftControl , Key . LeftAlt , Key . D ) ;
47+ } ) ;
48+
4349describe ( "E2E screen test" , ( ) => {
4450 it ( "should throw on invalid images" , async ( ) => {
4551 jest . setTimeout ( 30000 ) ;
@@ -59,7 +65,6 @@ describe("E2E demo", () => {
5965 await assert . isVisible ( "calculator.png" ) ;
6066 await keyboard . type ( "525" ) ;
6167 await calculate ( ) ;
62- await keyboard . type ( Key . Enter ) ;
6368 await assert . isVisible ( "result.png" ) ;
6469 await close ( ) ;
6570 } ) ;
You can’t perform that action at this time.
0 commit comments