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(e2e): prep work for making e2e more isolated #4961

Merged
merged 3 commits into from
Oct 13, 2023

Conversation

jtpetty
Copy link
Contributor

@jtpetty jtpetty commented Sep 29, 2023

Description

Updating our e2e test bench to not explicitly use the testSanityClient but rather the client to use be passed into the test. This will set us up for better test isolation going forward.

What to review

The overall approach. The next step would be to do something similar with creating documents.

Notes for release

This is a test bench refactor and is not relevant in the release notes

@vercel
Copy link

vercel bot commented Sep 29, 2023

You must have Developer access to commit code to Sanity on Vercel. If you contact an administrator and receive Developer access, commit again to see your changes.

Learn more: https://vercel.com/docs/concepts/teams/roles-and-permissions#enterprise-team-account-roles

@github-actions
Copy link
Contributor

No changes to documentation

@github-actions
Copy link
Contributor

github-actions bot commented Sep 29, 2023

Component Testing Report Updated Oct 13, 2023 4:35 PM (UTC)

File Status Duration Passed Skipped Failed
formBuilder/ArrayInput.spec.tsx ✅ Passed (Inspect) 14s 2 0 0
formBuilder/inputs/PortableText/Annotations.spec.tsx ✅ Passed (Inspect) 11s 3 0 0
formBuilder/inputs/PortableText/Decorators.spec.tsx ✅ Passed (Inspect) 9s 6 0 0
formBuilder/inputs/PortableText/Input.spec.tsx ✅ Passed (Inspect) 11s 9 0 0
formBuilder/inputs/PortableText/ObjectBlock.spec.tsx ✅ Passed (Inspect) 42s 18 0 0
formBuilder/inputs/PortableText/Styles.spec.tsx ✅ Passed (Inspect) 9s 6 0 0
formBuilder/inputs/PortableText/Toolbar.spec.tsx ✅ Passed (Inspect) 5s 3 0 0

@vercel
Copy link

vercel bot commented Oct 3, 2023

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

Name Status Preview Comments Updated (UTC)
performance-studio ✅ Ready (Inspect) Visit Preview Oct 13, 2023 4:32pm
studio-workshop 🔄 Building (Inspect) Visit Preview 💬 Add feedback Oct 13, 2023 4:32pm
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 13, 2023 4:32pm

@jtpetty jtpetty marked this pull request as ready for review October 3, 2023 14:19
@jtpetty jtpetty requested review from rexxars and bjoerge October 5, 2023 13:14
@bjoerge bjoerge force-pushed the next branch 2 times, most recently from e7bf4c3 to 4151f2e Compare October 9, 2023 11:02
@bjoerge bjoerge changed the title Prep work for making e2e more isolated test(e2e): prep work for making e2e more isolated Oct 9, 2023
Copy link
Member

@bjoerge bjoerge left a comment

Choose a reason for hiding this comment

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

LGTM!

@jtpetty jtpetty requested a review from binoy14 October 11, 2023 14:51
@jtpetty jtpetty added this pull request to the merge queue Oct 13, 2023
Merged via the queue into next with commit 7f964d0 Oct 13, 2023
14 checks passed
@jtpetty jtpetty deleted the tommy/testbench-updates branch October 13, 2023 16:46
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.

3 participants