2025SELab2-project-Dwengo/frontend/e2e/basic-learning.spec.ts

12 lines
540 B
TypeScript

import { test, expect } from './fixtures.js';
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();
});