-
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
Remove rename rn UI tests #39042
Remove rename rn UI tests #39042
Conversation
👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @jostnes! In case you missed it, we'd love to have you join us in our Slack community, where we hold regularly weekly meetings open to anyone to coordinate with each other. If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information. |
Thanks for opening this PR @jostnes !
Perhaps the title of the first test is not too accurate, but seems to be doing a lot more than adding a block from the inserter. One particularly "sensitive" action is performs is to put text inside paragraph blocks, which is a very critical flow to cover. The
Hmm, the key differentiator of the first text is to add a new block from the inserter while being in the title (and expecting the new block to land in the content top instead of the end, for example). My impression is that the second test is not covering that 🤔 . Perhaps I'm missing some detail? Please let me know 🙇
Agreed, at this stage many tests actually perform the operations of this one.
My understanding is that the critical bit covered by this test (pasting multiline text that creates multiple blocks) is only covered by the |
Hello @hypest, thanks for the review! All are valid concerns, appreciate you being thorough with the PR 🙇
The test case that I was comparing it to is the heading and paragraph blocks tests and it looks that it does cover multiple blocks being created and with multiline. Though the difference is one creates 2 paragraphs, the one that I'm proposing to delete creates 3 paragraphs. Recording of the tests here for comparison and to ensure that it's covered:
Good points! The two other tests while they cover what the test mention it should cover, they do not cover the specific cases you mentioned. I may have been a bit too eager to remove these tests 😅 I will revert my changes for that, slightly rename one test and keep the steps as-is for now. |
Ah, I think I see where the different is, sorry I didn't point it out clearly earlier: the first test creates different paragraphs by inserting them via the UI (Inserter), while the second is creating them as part of hitting the "Enter/Return" key while typing. In other words, the second test is testing the writing flow of multi-paragraph text, while the first one is doing that "manually" via the UI. The code paths for those flows are actually different so, I think the tests don't exactly cover the same cases. WDYT? |
Ah right, I see now what you mean. Using "Enter/Return" key to create new paragraphs is being covered in different test cases via the sendTextToParagraphBlock function. But now that I think about it, it may get removed/overwritten when refactoring the other tests, so yeah it's best to leave it in for now since this test specifically tests that one flow. I'll revert the change. |
Ah, thanks for confirming Jos! At this stage, can you also update the PR description to better reflect the current state of the PR in terms of what it changes/introduces? My understanding is that at this point, there's only 1 test removed but yeah, happy to take another pass after updating the description. Thanks! |
Oops apologies for not updating this earlier, I've updated the description to better reflect the changes now. Thanks again for reviewing! |
packages/react-native-editor/__device-tests__/gutenberg-editor-block-insertion.test.js
Outdated
Show resolved
Hide resolved
I notice that the PR checklist has many items unchecked Jos, can you go over them all to mark as done? They are meant to be like a signal that the PR author has indeed gone through the checks. Thanks! |
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 for the iterations on this PR @jostnes!
Feel free to merge, and the process I'd suggest is to merge the Gutenberg PR first, update the gutenberg-mobile PR to point to the "merged commit commit on Gutenberg trunk" and then merge that too when it gets green on CI. Thanks!
Description
This PR removes 1 React Native E2E UI tests for Gutenberg Mobile that is covered on other tests:
should be able to add a new Paragraph block
This PR also includes renaming changes, I initially thought the 3 features were the same and was ready to combine them but realized there are 3 different blocks with typos, fixed the typos in this PR.
Testing Instructions
Ensure that React Native UI Tests still pass on CI. PR on gutenberg-mobile: wordpress-mobile/gutenberg-mobile#4608
Screenshots
N/A
Types of changes
Removed redundant tests and fixed typos
Checklist:
*.native.js
files for terms that need renaming or removal).