This commit is contained in:
@@ -24,6 +24,16 @@ export const Processing = { args: { images: processingImages } };
|
|||||||
export const Failed = { args: { images: failedImages } };
|
export const Failed = { args: { images: failedImages } };
|
||||||
export const Saving = { args: { images, isSaving: true } };
|
export const Saving = { args: { images, isSaving: true } };
|
||||||
|
|
||||||
|
export const UploadGuidance = {
|
||||||
|
args: { images: [] },
|
||||||
|
play: async ({ canvasElement }) => {
|
||||||
|
const canvas = within(canvasElement);
|
||||||
|
const input = canvas.getByLabelText('Add images');
|
||||||
|
await expect(input).toHaveAttribute('aria-describedby', 'admin-image-upload-help');
|
||||||
|
await expect(canvas.getByText(/JPEG, PNG, or WebP images are accepted/)).toBeVisible();
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
export const EditAltTextWithKeyboard = {
|
export const EditAltTextWithKeyboard = {
|
||||||
args: { images },
|
args: { images },
|
||||||
play: async ({ canvasElement }) => {
|
play: async ({ canvasElement }) => {
|
||||||
|
|||||||
@@ -284,6 +284,7 @@ Remaining roadmap areas are approved external provider credentials/adapters, bro
|
|||||||
- Product identity and physical-copy selectors now include associated guidance describing the catalog and copy-level choices.
|
- Product identity and physical-copy selectors now include associated guidance describing the catalog and copy-level choices.
|
||||||
- Review/list controls now explain active-copy requirements, cents units, and publication prerequisites through associated help text.
|
- Review/list controls now explain active-copy requirements, cents units, and publication prerequisites through associated help text.
|
||||||
- Image upload controls now expose accepted formats and the configured per-item limit through associated help text.
|
- Image upload controls now expose accepted formats and the configured per-item limit through associated help text.
|
||||||
|
- Image upload constraint guidance now has Storybook interaction coverage.
|
||||||
|
|
||||||
## Local Commands
|
## Local Commands
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user