-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Site Editor: Add unit test for site templates export #28323
Conversation
Size Change: 0 B Total Size: 1.28 MB ℹ️ View Unchanged
|
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.
✅ - Zip file is still created/downloaded.
✅ php tests are passing.
test looks good to me! I don't have too much experience with exporting, I notice @youknowriad has dome some with this previously so maybe he has an idea of anything else that may make sense to be checked here.
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.
Worked properly for me, too. Nice to increase test coverage.
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.
Testing
Tested with tt1 blocks
Behavior
- Exports a zip file that contains all block templates and block template parts for the site
- PHP unit tests pass locally
- PHP units tests pass in Circle
Browsers
- Chrome
- Firefox
- Safari
- Edge
- IE11
Didn't test IE11 because of an existing issue #28249
Description
Add a simple unit test to make sure the export function works.
How has this been tested?
Make sure export still works
Make sure tests are passing
npm run test-unit-php
Types of changes
Code Quality
Checklist: