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

Re-enable editor UI tests #12111

Merged
merged 11 commits into from
Jun 15, 2020
Merged

Conversation

mkevins
Copy link
Contributor

@mkevins mkevins commented Jun 5, 2020

Fixes #11897

Description

This PR adds a ViewAction utility method to set explicitly the editor preference, and sets the specific editor for the Classic and Gutenberg tests.

Note: this PR does not yet address the startup time issue with the Gutenberg editor, so I'm leaving this as draft for now. If a solution to that is not soon available, these changes should allow disabling of only Gutenberg tests, so the Aztec tests can still run. It seems these issues may be resolved? I'll mark this for review, and revisit if there are still problems with the tests timing out.

Update:

I encountered some timeout issues with the Gutenberg editor test enabled. Additionally, there were problems with the signUpWithMagicLink test (mismatches on API endpoints reported from WireMock). I'm not sure why, but this goes away after disabling the Gutenberg editor test, so I suspect it is related to the editor flag. I've disabled the Gutenberg editor test and everything passes now. It may be worth fixing the Gutenberg editor test in a separate PR so that we don't block re-enabling the Aztec editor tests (since it seems that requires a bit more investigation).

To test:

Editor UI tests should pass locally and on CI.

PR submission checklist:

  • I have considered adding unit tests where possible.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@mkevins mkevins added the Testing label Jun 5, 2020
@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Jun 5, 2020

You can trigger optional UI/connected tests for these changes by visiting CircleCI here.

@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Jun 5, 2020

You can test the changes on this Pull Request by downloading the APK here.

It is not recommended to mutate a view's state directly, so this
approach uses an interaction to ensure the true or false state instead.
@mkevins mkevins requested a review from hypest June 12, 2020 14:56
@mkevins mkevins marked this pull request as ready for review June 12, 2020 14:58
@peril-wordpress-mobile
Copy link

Warnings
⚠️ PR is not assigned to a milestone.

Generated by 🚫 dangerJS

@mkevins mkevins requested a review from oguzkocer June 12, 2020 14:59
Copy link
Contributor

@oguzkocer oguzkocer left a comment

Choose a reason for hiding this comment

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

I ran the connected tests on CI multiple times and it passed each time. The block editor test is ignored and I think the addition of setting the editor to classic will resolve the flakiness for the regular editor tests. I don't think we'll have any issues, but let's merge it and keep an eye on it for a bit.

Thanks @mkevins!

@oguzkocer oguzkocer merged commit 5a556bf into develop Jun 15, 2020
@oguzkocer oguzkocer deleted the issue/11897-re-enable-editor-ui-tests branch June 15, 2020 22:56
@mkevins
Copy link
Contributor Author

mkevins commented Jun 16, 2020

Thanks for reviewing and testing Oguz!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Testing: Fix and re-enable editor UI tests
2 participants