test: Learning path filters
This commit is contained in:
		
							parent
							
								
									c003936806
								
							
						
					
					
						commit
						b67fcf19d4
					
				
					 1 changed files with 9 additions and 2 deletions
				
			
		|  | @ -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(); | ||||
| }); | ||||
|  |  | |||
		Reference in a new issue