Skip to content

Commit

Permalink
test: Replace swipe gesture with simple tap (#55427)
Browse files Browse the repository at this point in the history
It was unclear as to why the swipe gesture failed to close the bottom
sheet, but a simple tap towards the middle-top of the display achieves
the same result.
  • Loading branch information
dcalhoun authored Oct 18, 2023
1 parent 0dbf082 commit d482aa0
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,15 @@ class EditorPage {
'//android.view.ViewGroup[2]/android.view.ViewGroup/android.view.ViewGroup';
await waitForVisible( this.driver, locator );

await swipeDown( this.driver );
const { width, height } = await this.driver.getWindowSize();
await this.driver
.action( 'pointer', {
parameters: { pointerType: 'touch' },
} )
.move( { x: width * 0.5, y: height * 0.1 } )
.down( { button: 0 } )
.up( { button: 0 } )
.perform();
} else {
await clickIfClickable(
this.driver,
Expand Down

0 comments on commit d482aa0

Please sign in to comment.