-
Notifications
You must be signed in to change notification settings - Fork 20
Using a single file per Gutenberg post/page tests #1682
Conversation
…gutenberg-environment-config
Thanks for looking at this @JavonDavis
I think we need to be able to run these against wpcalypso as we transition to using Gutenberg in Calypso it will give us confidence that everything is still working - as Gutenberg in Calypso works technically a lot different to wp-admin Is there a way for CI to still run both? |
Well done @JavonDavis! I like this simplification and maintain only one spec instead of two |
Yeah, I've updated the script to do that but there are some failures now that I'm looking into the cause. The options I had in mind was this update I've made so far to the run script to run the wpcalypso tests or an update to the bridge repo to run the wpcalypso tests separately. I decided to give it a go with the script first and see if that can work well. |
I think we can hold off on this one since we'll be going all in on Gutenberg in Calypso in about a day or so, and this won't be necessary as WordPress.com will simply use Gutenberg in Calypso for anyone opted in, and we can just delete the wp-calypso spec |
This is the PR to enable Gutenberg for Calypso: Automattic/wp-calypso#29121 |
We should be careful here just to don't miss something since specs are not completely identical. For example, in wp-calypso |
@Stojdza yeah when the time comes we should probably copy those over and disable them until it's ready for Gutenberg in Calypso just to save some time. The version of the wp-gutenberg in this PR should actually have all of those but checked based on a condition I could rework this PR remove all the environment stuff, or should we work with a new PR for that? |
@JavonDavis I think that new PR from the fresh new master branch would be safer, but basically, there is no much difference. |
@JavonDavis I think that we are ok now with these 3 PRs: #1697 #1694 #1695 |
Following up on a something in a previous conversation....
I explored a few different ways to reduce what we have but this is what I settled on so far and could use some feedback...
Two main changes
WPCALYPSO
to decide the environment and the steps to take at loginTo Test:
Run
wp-gutenberg-post-editor-spec.js
andwp-gutenberg-page-editor-spec.js
normally and it should only run against wordpress.comRun
wp-gutenberg-post-editor-spec.js
andwp-gutenberg-page-editor-spec.js
normally with WPCALYPSO set to true and it should only run against wpcalypso.