Skip to content

Conversation

@gziolo
Copy link
Member

@gziolo gziolo commented Dec 4, 2018

Description

It's a proof of concept. This needs more love ❤️

The idea is to enable a few popular plugins which integrate with Gutenberg to ensure they don't break with the changes that we are going to be introducing in the future.

For starts, this PR enables the following plugins listed at https://wordpress.org/plugins/browse/blocks/:

  • Yoast SEO
  • Advanced Custom Fields
  • AMP
  • Jetpack
  • WPForms

We might want to add more of them in the future.

Implementation details

My shell skills aren't great so I would appreciate some help with polishing what I proposed 🙇

In particular, the way I solved the issue with file permissions to unblock plugins' installation is very hacky. By the way, it probably could be also the way to solve the issue we had last week with uploading inline images.

@gziolo gziolo added [Status] In Progress Tracking issues with work in progress [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. [Type] Plugin Interoperability Incompatibilities between a specific plugin and the block editor. Close with workaround notes. labels Dec 4, 2018
@gziolo gziolo added this to the 4.8 milestone Dec 4, 2018
@gziolo gziolo self-assigned this Dec 4, 2018
@gziolo gziolo force-pushed the add/popular-plugins-e2e branch from fc1e95a to 8c006bc Compare December 4, 2018 09:32
@jdevalk
Copy link
Contributor

jdevalk commented Dec 4, 2018

Thanks for doing this @gziolo!

@gziolo
Copy link
Member Author

gziolo commented Dec 4, 2018

@jdevalk thinking about it a bit more after a few constructive chats. We could even go one step further and add some short tests for each plugin maintained by plugin authors which could contain some verifications for integration with Gutenberg they feel are the most important for them.

@jdevalk
Copy link
Contributor

jdevalk commented Dec 4, 2018

We already have some running. @atimmer @moorscode can you discuss with Daria and select a few tests?

@gziolo
Copy link
Member Author

gziolo commented Dec 4, 2018

Unrelate to this PR, but we could limit this:
screen shot 2018-12-04 at 15 26 34

to create only gutenberg_wordpress_e2e_tests when running the container with e2e tests.

@gziolo
Copy link
Member Author

gziolo commented Dec 4, 2018

I think the latest attempt fixed the issue with permissions but I see some tests failing. I hope it's a temporary thing. Kudos to @jorgefilipecosta for sharing the workaround 👏

@tofumatt
Copy link
Member

tofumatt commented Dec 4, 2018

The failing tests here don't seem temporary (I've restarted Travis a few times) and several are failing locally for me as well. They don't seem related at all though. 🤷‍♂️

@jorgefilipecosta jorgefilipecosta force-pushed the add/popular-plugins-e2e branch 2 times, most recently from 2d93834 to 4edbcfd Compare December 4, 2018 23:14
Copy link
Member

@tofumatt tofumatt left a comment

Choose a reason for hiding this comment

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

This is awesome 👍

} )
.then( () => store.dispatch( metaBoxUpdatesSuccess() ) );
.then( () => store.dispatch( metaBoxUpdatesSuccess() ) )
.catch( noop );
Copy link
Member

Choose a reason for hiding this comment

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

Why does this happen/should we at least log an error here?

@gziolo gziolo removed the [Status] In Progress Tracking issues with work in progress label Dec 9, 2018
@jorgefilipecosta jorgefilipecosta force-pushed the add/popular-plugins-e2e branch 2 times, most recently from 473dd0b to 03da3f5 Compare December 9, 2018 17:57
@gziolo
Copy link
Member Author

gziolo commented Dec 12, 2018

@jorgefilipecosta what is the current status of this PR? Is the test failure for the preview feature a legitimate one?

@notnownikki
Copy link
Member

I re-ran the failing test a few times. The preview tests fails intermittently at different points, but the links test seems to be consistently failing.

@youknowriad youknowriad modified the milestones: 4.8, 4.9 Dec 19, 2018
@gziolo gziolo force-pushed the add/popular-plugins-e2e branch from 03da3f5 to 693630a Compare December 19, 2018 11:49
@gziolo
Copy link
Member Author

gziolo commented Dec 19, 2018

We already have some running. @atimmer @moorscode can you discuss with Daria and select a few tests?

It turns out that with Yoast SEO enabled, some e2e tests fail. It would nice if someone could help investigate. I'm trying with 4 plugins at the moment:

  • Advanced Custom Fields
  • Jetpack
  • WPForms

@gziolo
Copy link
Member Author

gziolo commented Dec 19, 2018

b2d8028 - trying without AMP as either it or WPForms breaks one test suite.

@gziolo
Copy link
Member Author

gziolo commented Dec 19, 2018

Both AMP and Yoast SEO plugins need to be further investigated. Let's proceed with those which work out of the box and work the rest in separate PRs.

Copy link
Member

@tofumatt tofumatt left a comment

Choose a reason for hiding this comment

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

It might be best to even keep the plugin install instructions there but comment them out and add TODOs/issues to follow-up with them, but yeah this looks good and is at least a start. I say :shipit:

@gziolo gziolo merged commit e3a9f5c into master Dec 20, 2018
@gziolo gziolo deleted the add/popular-plugins-e2e branch December 20, 2018 06:19
@gziolo
Copy link
Member Author

gziolo commented Dec 20, 2018

Yes, I will open a follow-up issue with a diff how to enable them.

@gziolo
Copy link
Member Author

gziolo commented Dec 20, 2018

I created a follow-up issue: #13038.

youknowriad pushed a commit that referenced this pull request Jan 9, 2019
…12578)

* Tests: Enabled popular plugins on Travis when running e2e test suite

* Try running WP-CLI with a different user

* Tweak if statement

* Add back chmod dance on plugins related folders

* Create upgrade folder

* Add a temporary noop catch when api fetch for meta box save fails. Not having a catch caused an end to end test to fail.

* Fix: clickBelow logic clicked on the meta boxes when a big meta box was open.

* Make todo LOUD ;-)

* Remove obsolete lines after rebasing with master

* Let's try without AFC

* Trying without Yoast SEO this time

* Revert changes for the test

* Enable 2 more plugins

* Try without AMP
youknowriad pushed a commit that referenced this pull request Jan 9, 2019
…12578)

* Tests: Enabled popular plugins on Travis when running e2e test suite

* Try running WP-CLI with a different user

* Tweak if statement

* Add back chmod dance on plugins related folders

* Create upgrade folder

* Add a temporary noop catch when api fetch for meta box save fails. Not having a catch caused an end to end test to fail.

* Fix: clickBelow logic clicked on the meta boxes when a big meta box was open.

* Make todo LOUD ;-)

* Remove obsolete lines after rebasing with master

* Let's try without AFC

* Trying without Yoast SEO this time

* Revert changes for the test

* Enable 2 more plugins

* Try without AMP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. [Type] Plugin Interoperability Incompatibilities between a specific plugin and the block editor. Close with workaround notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants