import { describe, it, expect, afterEach } from 'vitest';
import { cleanup, render } from 'vitest-browser-svelte';
import { page } from 'vitest/browser';
import AdminTagsIndexPage from './+page.svelte';

afterEach(cleanup);

describe('admin/tags index page', () => {
	it('renders the select-from-list prompt', async () => {
		render(AdminTagsIndexPage, { props: {} });

		await expect.element(page.getByText('Wähle ein Schlagwort aus der Liste.')).toBeVisible();
	});
});
