Skip to content

Commit

Permalink
VxAdmin: Show votes allowed in manual tally form (#5495)
Browse files Browse the repository at this point in the history
This is important when the tallies don't match the ballots cast - you
need to know how many votes are allowed per voter so you can do the math
to work out the expected number of votes.
  • Loading branch information
jonahkagan authored Oct 9, 2024
1 parent 1b77bb0 commit 054472e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ test('entering initial ballot count and contest tallies', async () => {
await screen.findByText(`${contestNumber} of ${contests.length}`);
screen.getByRole('heading', { name: contest.title });
screen.getByText(district.name);
if (contest.type === 'candidate') {
screen.getByText(`Vote for ${contest.seats}`);
}
screen.getByText('No tallies entered');

const saveButtonLabel =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,8 +742,13 @@ function ContestForm({
<TaskScreen>
<TallyTaskContent>
<FormCard>
<Caption>{getContestDistrictName(election, contest)}</Caption>
<H2 style={{ marginTop: 0 }}>{contest.title}</H2>
<div style={{ marginBottom: '0.5rem' }}>
<Caption>{getContestDistrictName(election, contest)}</Caption>
<H2 style={{ margin: 0 }}>{contest.title}</H2>
{contest.type === 'candidate' && (
<div>Vote for {contest.seats}</div>
)}
</div>
<ContestSection
fill={isOverridingBallotCount ? 'warning' : 'neutral'}
>
Expand Down

0 comments on commit 054472e

Please sign in to comment.