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

Feature: Add additional tests & fix e2e pipeline #336

Merged
merged 10 commits into from
Jul 9, 2024

Conversation

Firestorm980
Copy link
Contributor

@Firestorm980 Firestorm980 commented Jul 3, 2024

Description of the Change

Tests overhaul for the repo. This fixes an issue with e2e testing on GitHub workflows as well as adds many additional automated tests to Cypress for components that didn't previously have them. Should help identify if there are any breaking changes in the future.

How to test the Change

  1. Check out the branch locally
  2. Run npm start-test-env to start the WP environment
  3. Run npm cypress:run
  4. Confirm all tests pass

Workflow testing should be checked using the repos GitHub actions. Using the act package locally with Cypress appears to have some outstanding issues, unfortunately, but they are unrelated to these changes.

Changelog Entry

Added - Tests for ColorSettings, Counter, RichTextCharacterLimit, PostTitle, PostFeaturedImage, PostMeta
Added - More standardized testing commands (in line with our other repos)
Fixed - e2e tests only working sporadically in the GitHub workflow.

Credits

Props @Firestorm980

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

Copy link

github-actions bot commented Jul 3, 2024

Size Change: 0 B

Total Size: 63.5 kB

ℹ️ View Unchanged
Filename Size
dist/index.js 63.5 kB

compressed-size-action

@fabiankaegy
Copy link
Member

Hey @Firestorm980 👋

This is really cool!!!

Is there any reason this is still marked as draft? 🤔 from what I can tell this is all passing and working as indended

@Firestorm980
Copy link
Contributor Author

Hey @Firestorm980 👋

This is really cool!!!

Is there any reason this is still marked as draft? 🤔 from what I can tell this is all passing and working as indended

@fabiankaegy Just that I was still actively adding tests. I think if we got it updated with the base branch though, we can take out of draft and review.

@fabiankaegy fabiankaegy marked this pull request as ready for review July 9, 2024 14:03
@fabiankaegy
Copy link
Member

Okay cool :) Updated and reviewing now. We can always add more tests in separate PR's :)

.github/workflows/e2e-tests.yml Show resolved Hide resolved
Copy link

cypress bot commented Jul 9, 2024

Passing run #917 ↗︎

0 36 0 0 Flakiness 0

Details:

Merge branch 'develop' into feature/add-additional-tests
Project: 10up Block Components Commit: 1ba8741f41
Status: Passed Duration: 04:37 💡
Started: Jul 9, 2024 2:07 PM Ended: Jul 9, 2024 2:11 PM

Review all test suite changes for PR #336 ↗︎

@fabiankaegy fabiankaegy merged commit 946def3 into develop Jul 9, 2024
7 of 8 checks passed
@fabiankaegy fabiankaegy deleted the feature/add-additional-tests branch July 9, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants