Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed app/src/components/ui/ModalShell.test.tsx

Steven Enamakelb50bba7502b0
diff --git a/app/src/components/ui/ModalShell.test.tsx b/app/src/components/ui/ModalShell.test.tsx
index e957880536..c15f533879 100644
--- a/app/src/components/ui/ModalShell.test.tsx
+++ b/app/src/components/ui/ModalShell.test.tsx
@@ -124,4 +124,16 @@ describe('ModalShell', () => {
expect(screen.getByRole('dialog')).toHaveAttribute('aria-describedby', 'dialog-description');
});
+
+ test('forwards testId onto the panel that carries role="dialog"', () => {
+ renderModal({ testId: 'add-account-modal' });
+
+ expect(screen.getByTestId('add-account-modal')).toBe(screen.getByRole('dialog'));
+ });
+
+ test('emits no data-testid attribute when testId is omitted', () => {
+ renderModal();
+
+ expect(screen.getByRole('dialog')).not.toHaveAttribute('data-testid');
+ });
});