Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasFridmansky authored and Lipo11 committed Jan 29, 2024
1 parent 7f34960 commit 71fc5d5
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ describe( 'Instagram Stories test', () => {
} );
getAllByTestId( 'storyCloseButton' ).forEach( ( element ) => {

fireEvent( element.parent, 'onPressIn' );
fireEvent( element.parent, 'onPressIn', { nativeEvent: { locationX: 0, locationY: 0 } } );

} );

Expand Down Expand Up @@ -329,13 +329,7 @@ describe( 'Instagram Stories test', () => {
fireEvent( getByTestId( 'gestureContainer' ), 'responderEnd', {}, { moving: true, x: -300 } );
await sleep();

fireEvent( getByTestId( 'gestureContainer' ), 'responderEnd', {}, { pressedX: 0 } );
await sleep();

fireEvent( getByTestId( 'gestureContainer' ), 'responderEnd', {}, { pressedAt: 0 } );
await sleep();

fireEvent( getByTestId( 'gestureContainer' ), 'responderEnd', {}, {} );
fireEvent( getByTestId( 'gestureContainer' ), 'responderEnd', { translationY: 200 }, { vertical: true } );
await sleep();

expect( queryByTestId( 'gestureContainer' ) ).toBeFalsy();
Expand Down

0 comments on commit 71fc5d5

Please sign in to comment.