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

test(core): add tests for sort order local storage values #5764

Merged
merged 1 commit into from
Feb 20, 2024
Merged

Conversation

cngonzalez
Copy link
Member

Description

As we start to re-organize how we think about storing our settings, it's important to write tests first to ensure we're not losing any old functionality, especially during a transition period.

What to review

The new test file and the small change to add a data-testid to a component that would have been brittle to reach without it.

Testing

Feel free to run the tests locally as needed.

It would have been nice to also test, in true end-to-end fashion, whether or not these parameters have the desired effect on the in-studio experience. However, that would require us to create multiple documents to sort and check, which our current testing strategy makes a bit difficult, because it runs parallel workers. I think it would be an excellent idea in the future!

Notes for release

@cngonzalez cngonzalez requested a review from a team as a code owner February 16, 2024 01:40
@cngonzalez cngonzalez requested review from binoy14 and removed request for a team February 16, 2024 01:40
Copy link

vercel bot commented Feb 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
performance-studio ✅ Ready (Inspect) Visit Preview Feb 18, 2024 5:38pm
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 18, 2024 5:38pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Visit Preview Feb 18, 2024 5:38pm

Copy link
Contributor

No changes to documentation

Copy link
Contributor

github-actions bot commented Feb 16, 2024

Component Testing Report Updated Feb 18, 2024 5:41 PM (UTC)

File Status Duration Passed Skipped Failed
comments/CommentInput.spec.tsx ✅ Passed (Inspect) 31s 15 0 0
formBuilder/ArrayInput.spec.tsx ✅ Passed (Inspect) 6s 3 0 0
formBuilder/inputs/PortableText/Annotations.spec.tsx ✅ Passed (Inspect) 12s 3 0 0
formBuilder/inputs/PortableText/copyPaste/CopyPaste.spec.tsx ✅ Passed (Inspect) 12s 4 2 0
formBuilder/inputs/PortableText/Decorators.spec.tsx ✅ Passed (Inspect) 12s 6 0 0
formBuilder/inputs/PortableText/FocusTracking.spec.tsx ✅ Passed (Inspect) 32s 15 0 0
formBuilder/inputs/PortableText/Input.spec.tsx ✅ Passed (Inspect) 17s 9 0 0
formBuilder/inputs/PortableText/ObjectBlock.spec.tsx ✅ Passed (Inspect) 59s 18 0 0
formBuilder/inputs/PortableText/Styles.spec.tsx ✅ Passed (Inspect) 12s 6 0 0
formBuilder/inputs/PortableText/Toolbar.spec.tsx ✅ Passed (Inspect) 19s 9 0 0

Copy link
Contributor

@binoy14 binoy14 left a comment

Choose a reason for hiding this comment

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

Thank you!

@cngonzalez cngonzalez added this pull request to the merge queue Feb 20, 2024
Merged via the queue into next with commit adb43b0 Feb 20, 2024
40 checks passed
@cngonzalez cngonzalez deleted the sdx-1087 branch February 20, 2024 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants