test: Learning path filters

This commit is contained in:
Tibo De Peuter 2025-04-13 19:52:24 +02:00
parent c003936806
commit b67fcf19d4
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -1,5 +1,12 @@
import { test, expect } from './fixtures.js';
test('myTest', async ({ page }) => {
await expect(page).toHaveURL('/');
test('Users can filter', async ({ page }) => {
await page.goto('/user');
await page.getByRole('combobox').filter({ hasText: 'Select a themeAll' }).locator('i').click();
await page.getByText('Nature and climate').click();
await page.getByRole('combobox').filter({ hasText: 'Select ageAll agesSelect age' }).locator('i').click();
await page.getByText('and older').click();
await expect(page.getByRole('link', { name: 'AI and Climate Students in' })).toBeVisible();
});