-
Notifications
You must be signed in to change notification settings - Fork 15
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
Fix tests for WP 6.2 #189
Fix tests for WP 6.2 #189
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the PR @ggutenberg, and apologies for the very delayed review. Just have 1 minor note on PR. Also, could you please help resolve conflicts?
Thanks
cy.setLocalStorage( | ||
`WP_DATA_USER_${ userId }`, | ||
JSON.stringify({ | ||
'core/edit-post': { | ||
preferences: { | ||
features: { | ||
welcomeGuide: false, | ||
}, | ||
}, | ||
}, | ||
} ) | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a blocker, but maybe we can use cy.closeWelcomeGuide();
here?
For some reason if I remove the
It's happening randomly. I've seen it happen in the following two triggers:
Any thoughts on where this is coming from? |
@ggutenberg This error is not related to the test, I have added code to ignore it, tests passing in WP minimum now. However, tests are still failing in WP6.2 and the error is similar to the issue reported here 10up/cypress-wp-utils#91. will check on this further once get some time to check on this. Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Special thanks to @Sidsector9 for the fixing insertBlock issue.
Description of the Change
Fixed E2E tests for WP 6.2. Specifically:
Cypress.Cookies.defaults()
.Additionally, I tested the
insertspecialcharacters-characters
filter to make sure it was still working in WP 6.2.How to test the Change
Create a file called
.wp-env.override.json
in the root of this folder with the following contents:Then run the following commands:
Changelog Entry
Credits
Props @ggutenberg
Checklist: