Skip to content

Commit

Permalink
chore: add test id for create poll warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kneerose committed Nov 18, 2024
1 parent 6f77cb2 commit 744f52f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/polls/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ export default function NewPoll(props: Props): JSX.Element {
/>
{isPendingOrVotingPoll && (
<Alert severity="warning" variant="outlined">
<Typography variant="h6" fontWeight="600">
<Typography
variant="h6"
fontWeight="600"
data-testid="create-poll-warning"
>
You cannot create a new poll while there are pending or voting
polls. End any open poll then return to this page to create a
new poll.
Expand Down

0 comments on commit 744f52f

Please sign in to comment.