fix: preserve image manager state during action failures
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-10 17:57:28 -04:00
parent c5a07b2b5a
commit 72e9a79b67
9 changed files with 240 additions and 39 deletions
@@ -44,3 +44,14 @@ export const RetryFailedImage = {
await expect(canvas.getByRole('button', { name: 'Retry processing' })).toBeInTheDocument();
},
};
export const DisabledAfterRefreshFailure = {
args: { images, disabled: true },
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
await expect(canvas.getByLabelText('Add images')).toBeDisabled();
for (const button of canvas.getAllByRole('button', { name: /Edit alt text|Make primary|Move up|Move down|Delete image/ })) {
await expect(button).toBeDisabled();
}
},
};