feat(admin): E2E CRUD/i18n polish, IFT smoke workflow, fix edit payload wiping id. Refs EventHub/EventHubFrontAdmin#33 #37 #38 #39
This commit is contained in:
@@ -248,6 +248,7 @@ const ReviewListPage: React.FC = () => {
|
||||
cell: ({ row }) => (
|
||||
<input
|
||||
type="checkbox"
|
||||
data-testid={`review-check-${row.original.id}`}
|
||||
className="h-4 w-4 rounded border"
|
||||
checked={selectedRowKeys.includes(row.original.id)}
|
||||
onChange={() => toggleRow(row.original.id)}
|
||||
@@ -530,7 +531,7 @@ const ReviewListPage: React.FC = () => {
|
||||
open={bulkStatusModal.open}
|
||||
onOpenChange={(open) => !open && setBulkStatusModal({ open: false, status: 'hidden' })}
|
||||
>
|
||||
<DialogContent>
|
||||
<DialogContent data-testid="dialog-reviews-bulk-status">
|
||||
<DialogHeader>
|
||||
<DialogTitle>
|
||||
{t('reviews.bulkStatusTitle', {
|
||||
@@ -543,6 +544,7 @@ const ReviewListPage: React.FC = () => {
|
||||
<div className="space-y-2">
|
||||
<Label>{t('common.reason')}</Label>
|
||||
<Textarea
|
||||
data-testid="input-bulk-reason"
|
||||
rows={3}
|
||||
placeholder={t('reviews.bulkReasonPlaceholder')}
|
||||
{...bulkStatusForm.register('reason')}
|
||||
@@ -561,8 +563,12 @@ const ReviewListPage: React.FC = () => {
|
||||
>
|
||||
{t('common.cancel')}
|
||||
</Button>
|
||||
<Button type="submit" form="bulk-status-form" disabled={bulkUpdate.isPending}>
|
||||
{t('common.apply')}
|
||||
<Button
|
||||
type="submit"
|
||||
form="bulk-status-form"
|
||||
data-testid="btn-save"
|
||||
disabled={bulkUpdate.isPending}
|
||||
> {t('common.apply')}
|
||||
</Button>
|
||||
</DialogFooter>
|
||||
</DialogContent>
|
||||
|
||||
Reference in New Issue
Block a user