-
Notifications
You must be signed in to change notification settings - Fork 450
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): set up display documents e2e #8828
base: next
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
No changes to documentation |
Coverage Report
File CoverageNo changed files found. |
Component Testing Report Updated Mar 11, 2025 7:44 AM (UTC) ❌ Failed Tests (3) -- expand for details
|
⚡️ Editor Performance ReportUpdated Tue, 11 Mar 2025 14:33:19 GMT
Detailed information🏠 Reference resultThe performance result of
🧪 Experiment resultThe performance result of this branch
📚 Glossary
|
e051582
to
d9b99cc
Compare
d53da6f
to
878729b
Compare
095eb45
to
54d097f
Compare
9156e36
to
b7a3fe0
Compare
c19ad64
to
fde70ef
Compare
test(e2e): update e2e tests test(e2e): first stab at e2e new tests test(e2e): remove unneeded before each test(e2e): add more tests test(e2e): add more tests test(e2e): add more tests test(e2e): add more tests test(e2e): add more tests test(e2e): clean up test(e2e): clean up test(e2e): add more tests refactor(structure): updated condition based on suggestion e2e(structure): move e2e tests to the files e2e(structure): add test
bd82255
to
1cf08af
Compare
test.afterAll(async ({sanityClient}) => { | ||
const dataset = sanityClient.config().dataset | ||
|
||
await archiveRelease({sanityClient, dataset, releaseId: asapReleaseId}) |
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.
wondering if it were better if these were grouped by releaseId instead of operation. Now, if e.g archiving asapReleaseId fails for some reason, we won't get to archiving the undecidedReleaseId
test.afterAll(async ({sanityClient}) => { | ||
const dataset = sanityClient.config().dataset | ||
|
||
await sanityClient.delete(publishedDocument._id) |
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.
If this fails, we'll leave the release around forever. Might not be a big deal as we're probably deleting the dataset anwyay
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.
If I'm not mistaken the datasets are deleted per run (might be mistaken, is that not the case?) Or at least that was my assumption.
If it fails it does indeed stay forever, but I feel that this is for us to fix outside of the scope of the code, unless you feel there is something we can do to make it more certain that this succeeds?
47401f2
to
d248c64
Compare
Description
Added e2e tests to test document displayed from sapp-2388
What to review
Do the tests make sense?
Notes for release
N/A