Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Update E2E test utils #55427

Merged
merged 1 commit into from
Oct 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 );
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not clear to me why, but this utility failed to close the bottom sheet on Android. Replacing it with a simple tap on the middle-top of the display suffices.

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
Loading