Skip to content

Add block insertion tests #1139

Merged
JavonDavis merged 27 commits intodevelopfrom
add/tests-add-block-insertion
Jul 12, 2019
Merged

Add block insertion tests #1139
JavonDavis merged 27 commits intodevelopfrom
add/tests-add-block-insertion

Conversation

@JavonDavis
Copy link
Copy Markdown
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 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
Copy Markdown
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!

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
Copy Markdown
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 JavonDavis requested a review from mchowning July 11, 2019 04:56
@JavonDavis
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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! 🚀

@JavonDavis JavonDavis merged commit 251d571 into develop 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

None yet

Development

Successfully merging this pull request may close these issues.

2 participants