@@ -124,17 +124,17 @@ describe('Inflight Vote Requests', () => {
124124 const voteTakesEffect = screen . getByTestId ( `${ uniqueId } -row-vote-takes-effect` ) ;
125125 expect ( voteTakesEffect . textContent ) . toBe ( data . voteTakesEffect ) ;
126126
127- const voteStats = screen . getByTestId ( `${ uniqueId } -row-vote-stats` ) ;
128- expect ( voteStats . textContent ) . toBe ( '2 Accepted / 3 Rejected' ) ;
127+ const acceptedVoteStats = screen . getByTestId ( `${ uniqueId } -row-all-votes-stats-accepted` ) ;
128+ expect ( acceptedVoteStats . textContent ) . toBe ( '2 Accepted' ) ;
129+
130+ const rejectedVoteStats = screen . getByTestId ( `${ uniqueId } -row-all-votes-stats-rejected` ) ;
131+ expect ( rejectedVoteStats . textContent ) . toBe ( '3 Rejected' ) ;
129132
130133 const acceptanceThreshold = screen . getByTestId ( `${ uniqueId } -row-acceptance-threshold` ) ;
131134 expect ( acceptanceThreshold . textContent ) . toBe ( '11' ) ;
132135
133136 const yourVote = screen . getByTestId ( `${ uniqueId } -row-your-vote` ) ;
134137 expect ( yourVote . textContent ) . toMatch ( / N o V o t e / ) ;
135-
136- const viewDetails = screen . getByTestId ( `${ uniqueId } -row-view-details` ) ;
137- expect ( viewDetails ) . toBeDefined ( ) ;
138138 } ) ;
139139
140140 test ( 'should render Accepted inflight vote request' , ( ) => {
@@ -161,9 +161,9 @@ describe('Inflight Vote Requests', () => {
161161 ) ;
162162
163163 const yourVote = screen . getByTestId ( `${ uniqueId } -row-your-vote` ) ;
164- const acceptedIcon = screen . getByTestId ( `${ uniqueId } -row-your-vote-accepted-icon` ) ;
164+ const acceptedIcon = screen . getByTestId ( `${ uniqueId } -row-your-vote-stats- accepted-icon` ) ;
165165
166- expect ( acceptedIcon ) . toBeDefined ( ) ;
166+ expect ( acceptedIcon ) . toBeInTheDocument ( ) ;
167167 expect ( yourVote . textContent ) . toMatch ( / A c c e p t e d / ) ;
168168 } ) ;
169169
@@ -191,9 +191,9 @@ describe('Inflight Vote Requests', () => {
191191 ) ;
192192
193193 const yourVote = screen . getByTestId ( `${ uniqueId } -row-your-vote` ) ;
194- const rejectedIcon = screen . getByTestId ( `${ uniqueId } -row-your-vote-rejected-icon` ) ;
194+ const rejectedIcon = screen . getByTestId ( `${ uniqueId } -row-your-vote-stats- rejected-icon` ) ;
195195
196- expect ( rejectedIcon ) . toBeDefined ( ) ;
196+ expect ( rejectedIcon ) . toBeInTheDocument ( ) ;
197197 expect ( yourVote . textContent ) . toMatch ( / R e j e c t e d / ) ;
198198 } ) ;
199199
@@ -280,17 +280,17 @@ describe('Vote history', () => {
280280 const status = screen . getByTestId ( `${ uniqueId } -row-status` ) ;
281281 expect ( status . textContent ) . toBe ( data . status ) ;
282282
283- const voteStats = screen . getByTestId ( `${ uniqueId } -row-vote-stats` ) ;
284- expect ( voteStats . textContent ) . toBe ( '9 Accepted / 2 Rejected' ) ;
283+ const acceptedVoteStats = screen . getByTestId ( `${ uniqueId } -row-all-votes-stats-accepted` ) ;
284+ expect ( acceptedVoteStats . textContent ) . toBe ( '9 Accepted' ) ;
285+
286+ const rejectedVoteStats = screen . getByTestId ( `${ uniqueId } -row-all-votes-stats-rejected` ) ;
287+ expect ( rejectedVoteStats . textContent ) . toBe ( '2 Rejected' ) ;
285288
286289 const acceptanceThreshold = screen . getByTestId ( `${ uniqueId } -row-acceptance-threshold` ) ;
287290 expect ( acceptanceThreshold . textContent ) . toBe ( '11' ) ;
288291
289292 const yourVote = screen . getByTestId ( `${ uniqueId } -row-your-vote` ) ;
290293 expect ( yourVote . textContent ) . toMatch ( / A c c e p t e d / ) ;
291-
292- const viewDetails = screen . getByTestId ( `${ uniqueId } -row-view-details` ) ;
293- expect ( viewDetails ) . toBeDefined ( ) ;
294294 } ) ;
295295
296296 test ( 'should show info message when no vote history is available' , async ( ) => {
0 commit comments