-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[Mobile] - Update E2E Tests related to the Writing flow #57460
Conversation
Size Change: 0 B Total Size: 1.69 MB ℹ️ View Unchanged
|
packages/react-native-editor/__device-tests__/gutenberg-editor-writing-flow-@canary.test.js
Outdated
Show resolved
Hide resolved
…ate in some cases, which also expects the condition to be true.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎊 ! Thanks @geriux for adding new E2E tests to cover the writing flow test cases 🏅 !
I added some comments but none should block merging this PR.
Regarding the fixed issue related to showing/hiding the keyboard when adding/removing text-based blocks, I presume there's no easy way to check this via automated tests. I'm concerned that future changes might introduce a regression, especially if we update the focus/blur logic. Maybe we could cover this case as a manual test, WDYT?
packages/react-native-editor/__device-tests__/gutenberg-editor-writing-flow-@canary.test.js
Outdated
Show resolved
Hide resolved
packages/react-native-editor/__device-tests__/pages/editor-page.js
Outdated
Show resolved
Hide resolved
packages/react-native-editor/__device-tests__/gutenberg-editor-writing-flow-@canary.test.js
Outdated
Show resolved
Hide resolved
packages/react-native-editor/__device-tests__/gutenberg-editor-writing-flow-@canary.test.js
Outdated
Show resolved
Hide resolved
packages/react-native-editor/__device-tests__/gutenberg-editor-paragraph.test.js
Show resolved
Hide resolved
packages/react-native-editor/__device-tests__/gutenberg-editor-writing-flow-@canary.test.js
Outdated
Show resolved
Hide resolved
packages/react-native-editor/__device-tests__/gutenberg-editor-device-actions.test.js
Outdated
Show resolved
Hide resolved
Instead of adding new manual tests, what if we add a new expectation in the "Splitting and Merging" tests to expect the keyboard to remain visible when splitting and merging text blocks? |
Yep, good idea, I agree it's better to add it as a new expectation. |
… the logic to click on the title wrapper within the function
…on to avoid clicking on the wrapper on iOS if its set to true for cases where its already focused and the caret is at the desired position
Awesome, added them in wordpress-mobile/test-cases#158 |
This matches the behavior of the host app WP-Android.
…at/native-writing-flow-tests
Heads up that I merged changes from #57543 to address flaky tests related to the case |
Related PRs:
What?
This PR adds a new E2E test suite
Writing flow tests
and merges the canary testsParagraph
andHeading
into it.Why?
To check for new cases related to the keyboard state and to verify existing ones like merging blocks or creating new blocks when using the
return
key.How?
Adds new tests picked from #57070:
It provides a new option
initialTitle
forinitializeEditor
to pass a custom title to the editor, for these cases to be able to set it as an empty title.Adds new helpers needed for these tests:
getDefaultBlockAppenderElement
getEmptyTitleElement
isBlockActionsMenuButtonDisplayed
isImageBlockSelected
Testing Instructions
CI checks should pass on both Gutenberg and Gutenberg Mobile.
Testing Instructions for Keyboard
N/A
Screenshots or screencast
N/A