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

afterEach(cleanup);

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

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