codeforboston / codeforboston/maple

Tests for Testimony Detail Page

Open
#1,541 0 comments 0 reactions 1 assignee Claimed by @JabaDUDE View on GitHub
tech debt
Dominant language
TypeScript
Stars
56
Forks
175
Avg merge
2d 5h
Merged PRs (30d)
13

Description

**Goal**
We want to be able to automatically test the Testimony Detail page to build confidence in the basic functioning of the site after deploys.

**Success Criteria:**
- Add a Test to confirm that the Testimony Detail page renders as expected
- This likely doesn't need to be a full E2E test just yet - unit tests confirming the page renders correctly should be fine
- Will likely need to detect the presence of:
- Bill Title
- Testimony stance (endore/neutral/oppose) and text
- Add Testimony action (for logged out user or user who has not submitted testimony)
- Edit Testimony action (for user who has submitted testimony)
- Revision History

**Exclusions**
- Likely doesn't need to be an E2E test just yet - this seems like it could be a good case for building out our unit test suite
- There was a previous bug in navigating to the Testimony Detail page due to faulty link construction - we want to test the case automatically going forward, bu the issue there was in the originating page, so this E2E test case will be covered in the Browse Testimonies tests and not here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.