Skip to content

Commit

Permalink
feat: fix message params | add message expanded view (#96)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Felix C. Morency <[email protected]>
  • Loading branch information
chalabi2 and fmorency authored Dec 2, 2024
1 parent 6058fc5 commit c20e86c
Show file tree
Hide file tree
Showing 2 changed files with 276 additions and 212 deletions.
12 changes: 9 additions & 3 deletions components/groups/modals/__tests__/voteDetailsModal.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,15 @@ describe('VoteDetailsModal', () => {
test('renders messages section with correct data', () => {
renderWithChainProvider(<VoteDetailsModal {...defaultProps} />);
expect(screen.getByText('MESSAGES')).toBeInTheDocument();
expect(screen.getByText('Send')).toBeInTheDocument();
expect(screen.getByText('from_address:')).toBeInTheDocument();
expect(screen.getByText('to_address:')).toBeInTheDocument();
expect(screen.getByLabelText('msg')).toBeInTheDocument();

for (const m of ['Send', 'from_address:', 'to_address:']) {
const field = screen.getAllByText(m);

for (const f of field) {
expect(f).toBeInTheDocument();
}
}
});

test('conditionally renders execute button when proposal is accepted', () => {
Expand Down
Loading

0 comments on commit c20e86c

Please sign in to comment.