sanity icon indicating copy to clipboard operation
sanity copied to clipboard

chore(tasks): add e2e and integration tests

Open pedrobonamin opened this issue 10 months ago • 3 comments

Description

Adds e2e tests and some new integration tests to tasks to cover the critical paths.

  • e2e tests added:

    • Create a task from the sidebar (create new button)
      • Test all fields are working:
        • Title
        • Description
        • Assignee
        • Deadline
        • Target document.
      • Tests the task shows in the list
    • Edit the new task.
      • Changes values in the task, the change is reflected.
    • Deletes the task
    • Creates a task from the document action button.
    • Navigates to tasks from:
      • Document footer action.
      • Navbar toggle button.
      • Visiting the studio with a task url.
  • Fixes an issue in which when editing quickly through tasks and clicking create, the task was not created correctly.

What to review

Is there something else considered critical that we are missing tests?

Testing

Notes for release

Adds e2e tests to tasks. Fixes an issue in tasks in which in some cases tasks were not created.

pedrobonamin avatar Apr 12 '24 11:04 pedrobonamin

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

Name Status Preview Updated (UTC)
performance-studio ✅ Ready (Inspect) Visit Preview Apr 12, 2024 11:56am
test-studio ✅ Ready (Inspect) Visit Preview Apr 12, 2024 11:56am
1 Ignored Deployment
Name Status Preview Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Apr 12, 2024 11:56am

vercel[bot] avatar Apr 12 '24 11:04 vercel[bot]

No changes to documentation

github-actions[bot] avatar Apr 12 '24 11:04 github-actions[bot]

Component Testing Report Updated Apr 12, 2024 12:05 PM (UTC)

File Status Duration Passed Skipped Failed
comments/CommentInput.spec.tsx ✅ Passed (Inspect) 30s 15 0 0
formBuilder/ArrayInput.spec.tsx ✅ Passed (Inspect) 6s 3 0 0
formBuilder/inputs/PortableText/Annotations.spec.tsx ✅ Passed (Inspect) 25s 6 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) 58s 14 0 0
formBuilder/inputs/PortableText/ObjectBlock.spec.tsx ✅ Passed (Inspect) 1m 1s 18 0 0
formBuilder/inputs/PortableText/RangeDecoration.spec.tsx ✅ Passed (Inspect) 12s 6 0 0
formBuilder/inputs/PortableText/Styles.spec.tsx ✅ Passed (Inspect) 13s 6 0 0
formBuilder/inputs/PortableText/Toolbar.spec.tsx ✅ Passed (Inspect) 19s 9 0 0

github-actions[bot] avatar Apr 12 '24 12:04 github-actions[bot]