Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Mobile] - Update E2E Tests related to the Writing flow (#57460)
* Add support to pass the initialTitle to the E2E tests * Editor Page - Add new E2E utils * E2E - Paragraph block - Remove deprecated multiline prop test * Add initial E2E Writing flow tests * E2E Tests - Merge Paragraph block tests with the Writing flow tests * E2E Tests - Merge Heading block tests with the Writing flow tests * Add missing part of the test * Fixes comment typo * Fix typo * Increase pause value * Add pause before dismissing the keyboard to avoid flakiness * Remove pause in favor of waitUntil * Removes pause in favor of waitUntil when checking for the Keyboard state in some cases, which also expects the condition to be true. * Simplify waitUntil to just pass the promise * Rename getEmptyTitleElement to getEmptyTitleTextInputElement and move the logic to click on the title wrapper within the function * Editor Page - Adds new param skipWrapperClick to getTextBlockAtPosition 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 * Unify the split and merge tests into one * Update `showSoftKeyboard` to wait for the text input to get focus * Check input method manager is defined before hiding keyboard * Set wrapper view of the editor to be not focusable in the demo app This matches the behavior of the host app WP-Android. --------- Co-authored-by: Carlos Garcia <fluiddot@gmail.com>
- Loading branch information