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