This commit is contained in:
@@ -1,5 +1,16 @@
|
|||||||
import AdminInventoryPage from './AdminInventoryPage.vue';
|
import AdminInventoryPage from './AdminInventoryPage.vue';
|
||||||
|
import { expect, within } from '@storybook/test';
|
||||||
|
|
||||||
export default { title: 'Pages/AdminInventoryPage', component: AdminInventoryPage };
|
export default { title: 'Pages/AdminInventoryPage', component: AdminInventoryPage };
|
||||||
|
|
||||||
export const Inventory = {};
|
export const Inventory = {};
|
||||||
|
|
||||||
|
export const ActionAnnouncements = {
|
||||||
|
play: async ({ canvasElement }) => {
|
||||||
|
const canvas = within(canvasElement);
|
||||||
|
const status = canvasElement.querySelector('[aria-live="polite"]');
|
||||||
|
await expect(status).toBeTruthy();
|
||||||
|
await expect(status).toHaveAttribute('aria-live', 'polite');
|
||||||
|
await expect(status).toHaveClass('sr-only');
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|||||||
@@ -269,6 +269,7 @@ Remaining roadmap areas are approved external provider credentials/adapters, bro
|
|||||||
- Per-item image limits are now enforced atomically for seller image creation and uploads, using `inventory.maxImagesPerItem` (default 10); concurrent inserts are serialized on the physical inventory item and return `IMAGE_COUNT_LIMIT_REACHED` at the configured cap.
|
- Per-item image limits are now enforced atomically for seller image creation and uploads, using `inventory.maxImagesPerItem` (default 10); concurrent inserts are serialized on the physical inventory item and return `IMAGE_COUNT_LIMIT_REACHED` at the configured cap.
|
||||||
- Admin navigation now includes a keyboard-visible skip link to the main content region, with Storybook interaction coverage.
|
- Admin navigation now includes a keyboard-visible skip link to the main content region, with Storybook interaction coverage.
|
||||||
- Admin inventory bulk archive, pricing refresh, tag, and retry actions now announce successful outcomes through a polite live region.
|
- Admin inventory bulk archive, pricing refresh, tag, and retry actions now announce successful outcomes through a polite live region.
|
||||||
|
- Admin inventory action announcements now have Storybook interaction coverage verifying the live-region contract.
|
||||||
|
|
||||||
## Local Commands
|
## Local Commands
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user