ReUI alignment: AlertDialog for destructive confirms, Input for date range, ghost Button for Alert close
CI / check (push) Successful in 3m35s
CI / image (push) Successful in 1m32s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
DenozordecandClaude Sonnet 5.5 committed 2026-10-30 10:55:18 +07:00
1 parent 7638939273
commit 59f882e58c
14 files changed
+71 -40

No files matched your search

+3 -3
View File
@@ -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')