test: cover inventory action announcements
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-11 09:20:17 -04:00
parent 98d2adac17
commit 18a99595e5
2 changed files with 12 additions and 0 deletions
@@ -1,5 +1,16 @@
import AdminInventoryPage from './AdminInventoryPage.vue';
import { expect, within } from '@storybook/test';
export default { title: 'Pages/AdminInventoryPage', component: AdminInventoryPage };
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');
},
};