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

afterEach(cleanup);

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

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