Add frontend unit tests for WorkflowSnapshotService

Open Beginner friendly
#6,454 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Quiet
Tech stack
typescript
Domain
frontend, testing

Research direction

Start with frontend/src/app/dashboard/service/user/workflow-snapshot/workflow-snapshot.service.ts and trace the canvas capture, multipart upload, and retrieve endpoint. The work is done when a spec exercises success and error paths for html2canvas capture, FormData upload with wid handling, and retrieval.

Written by the indexing model from the issue text.

Description

Task Summary

The frontend service at frontend/src/app/dashboard/service/user/workflow-snapshot/workflow-snapshot.service.ts currently has no unit-test coverage. Add a spec covering the canvas capture (via html2canvas), the multipart upload (FormData with wid handling) and the retrieve endpoint, exercising both success and error paths.

Task Type
  • Testing / QA
Dominant language
Scala
Stars
316
Forks
189
Avg merge
2d 20h
Merged PRs (30d)
198

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/texera

All issues in apache/texera

Similar issues

More Scala issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.