ReUI alignment: AlertDialog for destructive confirms, Input for date range, ghost Button for Alert close
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7638939273
commit
59f882e58c
14 files changed
+71
-40
No files matched your search
@@ -158,7 +158,7 @@ describe('Logs › View Logs', () => {
|
||||
expect(
|
||||
screen.getByText("Are you sure you want to permanently delete the log file '2026-08-26'?"),
|
||||
).toBeInTheDocument()
|
||||
await user.click(within(screen.getByRole('dialog')).getByRole('button', { name: 'Delete' }))
|
||||
await user.click(within(screen.getByRole('alertdialog')).getByRole('button', { name: 'Delete' }))
|
||||
|
||||
expect(spy).toHaveBeenCalledWith('t', '2026-08-26', '')
|
||||
expect(await screen.findByText('Log Deleted!')).toBeInTheDocument()
|
||||
@@ -177,7 +177,7 @@ describe('Logs › View Logs', () => {
|
||||
screen.getByText('Are you sure you want to permanently delete all log files?'),
|
||||
).toBeInTheDocument()
|
||||
await user.click(
|
||||
within(screen.getByRole('dialog')).getByRole('button', { name: 'Delete All Logs' }),
|
||||
within(screen.getByRole('alertdialog')).getByRole('button', { name: 'Delete All Logs' }),
|
||||
)
|
||||
|
||||
expect(spy).toHaveBeenCalledWith('t', '')
|
||||
@@ -197,7 +197,7 @@ describe('Logs › View Logs', () => {
|
||||
screen.getByText('Are you sure you want to permanently delete all stats files?'),
|
||||
).toBeInTheDocument()
|
||||
await user.click(
|
||||
within(screen.getByRole('dialog')).getByRole('button', { name: 'Delete All Stats' }),
|
||||
within(screen.getByRole('alertdialog')).getByRole('button', { name: 'Delete All Stats' }),
|
||||
)
|
||||
|
||||
expect(spy).toHaveBeenCalledWith('t')
|
||||
|
||||
Reference in new issue
Block a user