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

Focus blocks on Android Device Tests #1038

Merged
merged 1 commit into from
May 29, 2019

Conversation

JavonDavis
Copy link
Contributor

@JavonDavis JavonDavis commented May 28, 2019

This PR adds code to focus on blocks before sending text to them on Android. In some cases, if this wasn't done the text would be sent to the wrong block.

To test:

  • Ensure all tests pass locally and in CI

Update release notes:

  • If there are user facing changes, I have added an item to RELEASE-NOTES.txt.

* Include variable for debugging tests in command
@JavonDavis JavonDavis added Testing Anything related to automated tests bugfix labels May 28, 2019
@JavonDavis JavonDavis requested a review from hypest May 28, 2019 01:48
@JavonDavis JavonDavis self-assigned this May 28, 2019
@peril-wordpress-mobile
Copy link

Warnings
⚠️ PR is not assigned to a milestone.

Generated by 🚫 dangerJS

@@ -84,7 +84,7 @@
"test:inside-gb": "cross-env NODE_ENV=test jest --verbose --config jest_gb.config.js",
"test:debug": "cross-env NODE_ENV=test node --inspect-brk jest --runInBand --verbose --config jest.config.js",
"device-tests": "cross-env NODE_ENV=test jest --runInBand --reporters=default --reporters=jest-junit --detectOpenHandles --verbose --config jest_ui.config.js",
"device-tests:debug": "cross-env NODE_ENV=test node --inspect-brk node_modules/jest/bin/jest --runInBand --reporters=default --reporters=jest-junit --detectOpenHandles --verbose --config jest_ui.config.js",
"device-tests:debug": "cross-env NODE_ENV=test node $NODE_DEBUG_OPTION --inspect-brk node_modules/jest/bin/jest --runInBand --reporters=default --reporters=jest-junit --detectOpenHandles --verbose --config jest_ui.config.js",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Needed for debugging in IntelliJ

@JavonDavis JavonDavis changed the title Fix issue causing Android tests to fail Focus blocks on Android Device Tests May 28, 2019
Copy link
Contributor

@Tug Tug left a comment

Choose a reason for hiding this comment

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

LGTM 👍

New paragraph should autofocus in theory, so it's more of a problem with how we handle the focus/selected state.
As far as I understand (and @hypest could confirm maybe) this is a tricky problem that we have not completely solved yet on mobile. So I can understand if this is needed as a "temporary fix".

@JavonDavis JavonDavis merged commit 6e46800 into develop May 29, 2019
@JavonDavis JavonDavis deleted the fix/device-test-editor-focus branch May 29, 2019 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Testing Anything related to automated tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants