Skip to content

Commit dff76fd

Browse files
committed
fix ui tests [ci]
Signed-off-by: Paweł Perek <pawel.perek@digitalasset.com>
1 parent 5d5dec4 commit dff76fd

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

apps/sv/frontend/src/__tests__/governance/action-required-section.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ describe('Action Required', () => {
9292
expect(action).toBeInTheDocument();
9393
expect(action.textContent).toBe(actionRequired.actionName);
9494

95-
const createdAt = screen.getByTestId('action-required-created-at-content');
96-
expect(createdAt).toBeInTheDocument();
97-
expect(createdAt.textContent).toBe(actionRequired.createdAt);
95+
const description = screen.getByTestId('action-required-description-content');
96+
expect(description).toBeInTheDocument();
97+
expect(description.textContent).toBe(actionRequired.description);
9898

9999
const votingCloses = screen.getByTestId('action-required-voting-closes-content');
100100
expect(votingCloses).toBeInTheDocument();

apps/sv/frontend/src/__tests__/governance/proposal-listing.test.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,6 @@ describe('Inflight Vote Requests', () => {
132132
const rejectedVoteStats = screen.getByTestId(`${uniqueId}-row-all-votes-stats-rejected`);
133133
expect(rejectedVoteStats.textContent).toBe('3 Rejected');
134134

135-
const acceptanceThreshold = screen.getByTestId(`${uniqueId}-row-acceptance-threshold`);
136-
expect(acceptanceThreshold.textContent).toBe('11');
137-
138135
const yourVote = screen.getByTestId(`${uniqueId}-row-your-vote`);
139136
expect(yourVote.textContent).toMatch(/No Vote/);
140137
});
@@ -297,9 +294,6 @@ describe('Vote history', () => {
297294
const rejectedVoteStats = screen.getByTestId(`${uniqueId}-row-all-votes-stats-rejected`);
298295
expect(rejectedVoteStats.textContent).toBe('2 Rejected');
299296

300-
const acceptanceThreshold = screen.getByTestId(`${uniqueId}-row-acceptance-threshold`);
301-
expect(acceptanceThreshold.textContent).toBe('11');
302-
303297
const yourVote = screen.getByTestId(`${uniqueId}-row-your-vote`);
304298
expect(yourVote.textContent).toMatch(/Accepted/);
305299
});

0 commit comments

Comments
 (0)