File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change 11import {
22 assert ,
3- Button ,
43 centerOf ,
54 down ,
65 Key ,
@@ -42,10 +41,6 @@ const close = async () => {
4241 await mouse . leftClick ( ) ;
4342} ;
4443
45- afterEach ( async ( ) => {
46- await keyboard . type ( Key . LeftControl , Key . LeftAlt , Key . D ) ;
47- } ) ;
48-
4944describe ( "E2E screen test" , ( ) => {
5045 it ( "should throw on invalid images" , async ( ) => {
5146 jest . setTimeout ( 30000 ) ;
@@ -90,15 +85,3 @@ describe("E2E drag & drop demo", () => {
9085 expect ( Math . abs ( dest . height - expected . height ) ) . toBeLessThanOrEqual ( maxDiff ) ;
9186 } ) ;
9287} ) ;
93-
94- describe ( "E2E mouse button demo" , ( ) => {
95- it ( "should click all mouse buttons without throwing" , async ( ) => {
96- jest . setTimeout ( 60000 ) ;
97- screen . config . resourceDirectory = "./e2e/assets" ;
98- for ( const btn of [ Button . RIGHT , Button . MIDDLE , Button . LEFT ] ) {
99- await mouse . pressButton ( btn ) ;
100- await sleep ( 10 ) ;
101- await mouse . releaseButton ( btn ) ;
102- }
103- } ) ;
104- } ) ;
You can’t perform that action at this time.
0 commit comments