This commit is contained in:
@@ -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();
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user