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

Add block insertion tests #1139

Merged
merged 27 commits into from Jul 12, 2019
Merged

Add block insertion tests #1139

merged 27 commits into from Jul 12, 2019

Conversation

JavonDavis
Copy link
Contributor

@JavonDavis JavonDavis commented Jun 14, 2019

Part of #745

To test: Run TEST_RN_PLATFORM=android yarn device-tests __device-tests__/gutenberg-editor-block-insertion.test.js

The PR also updates the filename used for the app to include the branch name as a unique identifier. There's a little concern about branches that might be running at the same time using the same filename and end up testing the wrong versions of the app. This change eliminates that

Update release notes:

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

@JavonDavis JavonDavis added the Testing Anything related to automated tests label Jun 14, 2019
@JavonDavis JavonDavis requested a review from hypest June 14, 2019 23:16
@JavonDavis JavonDavis self-assigned this Jun 14, 2019
@JavonDavis JavonDavis added this to In progress in E2E testing ramp up via automation Jun 14, 2019
@JavonDavis JavonDavis requested a review from marecar3 June 25, 2019 00:29
@hypest hypest requested review from mchowning and removed request for hypest and marecar3 July 4, 2019 07:29
Copy link
Contributor

@mchowning mchowning left a comment

Choose a reason for hiding this comment

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

Nice job @JavonDavis ! This looks good!

I made a couple of small comments that are mostly just me trying to learn more about our test setup.

The one important thing I noticed is that the new test for inserting blocks when the title block is selected will break once develop is merged because I recently merged a PR that changes this behavior. Blocks inserted from the title are now inserted at the beginning of the post instead of the end. Once that is fixed, I think this PR will be good to go!

__device-tests__/helpers/caps.js Show resolved Hide resolved
__device-tests__/gutenberg-editor-block-insertion.test.js Outdated Show resolved Hide resolved
__device-tests__/helpers/test-data.js Show resolved Hide resolved
bin/sauce-pre-upload.sh Show resolved Hide resolved
E2E testing ramp up automation moved this from In progress to Needs review Jul 9, 2019
@@ -1,10 +1,10 @@
exports.shortText = `Rock music approaches at high velocity.`;

exports.mediumText = `The finer continuum interprets the polynomial rabbit. When can the geology cheat? An astronomer runs. Should a communist consent?`;
exports.mediumText = `The finer continuum interprets the polynomial rabbit. When can the geology runs? An astronomer runs. Should a communist consent?`;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changes here were made to avoid autocomplete causing validation errors.

@JavonDavis
Copy link
Contributor Author

JavonDavis commented Jul 11, 2019

It seems an upgrade to the packages caused the tests to stop running in parallel and the length of the runs went up back to about 30 mins, I made a few additional changes to command revert that.

@mchowning
Copy link
Contributor

Hey @JavonDavis ! The code changes look good to me, but the tests are failing to run on CI. Looks like the missing file being referenced was added recently, but neither develop or this PR are referencing a gutenberg commit from after that PR was merged. So you might just need to update the submodule ref for gutenberg.

Copy link
Contributor

@mchowning mchowning left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

E2E testing ramp up automation moved this from Needs review to Reviewer approved Jul 12, 2019
@JavonDavis JavonDavis merged commit 251d571 into develop Jul 12, 2019
E2E testing ramp up automation moved this from Reviewer approved to Done Jul 12, 2019
@Tug Tug deleted the add/tests-add-block-insertion branch September 24, 2019 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing Anything related to automated tests
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants