Skip to content

LLM inference in C/C++

C++ ggml
1.0 KB
Raw Blame
<script lang="ts" module>
	import { defineMeta } from '@storybook/addon-svelte-csf';
	import SidebarNavigationConversationItem from '$lib/components/app/navigation/SidebarNavigation/SidebarNavigationConversationItem.svelte';
	import { expect } from 'storybook/test';

	const mockForkedConversation: DatabaseConversation = {
		currNode: 'msg-2',
		forkedFromConversationId: 'conv-1',
		id: 'conv-2',
		lastModified: Date.now(),
		name: 'Forked Conversation'
	};

	const { Story } = defineMeta({
		component: SidebarNavigationConversationItem,
		parameters: {
			layout: 'centered'
		},
		tags: ['!dev'],
		title: 'Components/SidebarNavigationConversationItem/Accessibility'
	});
</script>

<Story
	args={{ conversation: mockForkedConversation, depth: 1 }}
	name="ForkIconSingleTabStop"
	play={async ({ canvas, userEvent }) => {
		const row = await canvas.findByRole('button', { name: /Forked Conversation/ });
		const forkIcon = await canvas.findByRole('link');

		row.focus();
		await userEvent.tab();

		await expect(forkIcon).toHaveFocus();
	}}
/>