Skip to content

No need to invoke 'input keyevent 82' on test-e2e-local#48707

Closed
cortinico wants to merge 2 commits into
mainfrom
nc/wait-for-device
Closed

No need to invoke 'input keyevent 82' on test-e2e-local#48707
cortinico wants to merge 2 commits into
mainfrom
nc/wait-for-device

Conversation

@cortinico
Copy link
Copy Markdown
Contributor

Summary:

The testing script is making unnecessary call to input keyevent 82 which causes the Android device to
open the menu. It's sufficient to just call adb wait-for-device instead.

Changelog:

[Internal] [Changed] -

Test Plan:

Tested local with local device

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Jan 15, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@cortinico has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Code analysis results:

  • eslint found some issues. Run yarn lint --fix to automatically fix problems.

exec(
"adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done; input keyevent 82'",
);
exec("adb wait-for-device");
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

quotes: Strings must use singlequote.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@cortinico has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jan 16, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@cortinico merged this pull request in 1b15f57.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @cortinico in 1b15f57

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants