forked from Vero-protocol/vero-core-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAuditTrailGraph.test.tsx
More file actions
17 lines (15 loc) · 826 Bytes
/
Copy pathAuditTrailGraph.test.tsx
File metadata and controls
17 lines (15 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { render, screen } from '@testing-library/react';
import { describe, expect, it } from 'vitest';
import { AuditTrailGraph } from './AuditTrailGraph';
describe('AuditTrailGraph', () => {
it('renders the audit history graph and visible chain entries', () => {
render(<AuditTrailGraph />);
expect(screen.getByRole('heading', { name: /audit trail/i })).toBeInTheDocument();
expect(screen.getByLabelText(/audit history graph/i)).toBeInTheDocument();
expect(screen.getByText(/4 commits/i)).toBeInTheDocument();
expect(screen.getByText(/treasury rebalance/i)).toBeInTheDocument();
expect(screen.getByText(/proposal approved/i)).toBeInTheDocument();
expect(screen.getByText(/bridge:settle#9241/i)).toBeInTheDocument();
expect(screen.getByText(/latest head/i)).toBeInTheDocument();
});
});