Add button-driven search filters
This commit is contained in:
@@ -22,3 +22,22 @@ test('search results have no accessibility violations', async ({
|
||||
const result = await a11y().analyze()
|
||||
expect(result.violations).toEqual([])
|
||||
})
|
||||
|
||||
test('open filters and active condition chips have no accessibility violations', async ({
|
||||
a11y,
|
||||
page,
|
||||
searchPage,
|
||||
}) => {
|
||||
await searchPage.goTo()
|
||||
await searchPage.queryInputLocator.fill('TypeScript')
|
||||
await page.getByRole('button', { name: '投稿者' }).click()
|
||||
await page.getByLabel('投稿者').fill('@tan_stack')
|
||||
await page.getByRole('button', { name: '言語' }).click()
|
||||
await page.getByLabel('日本語').check()
|
||||
await expect(
|
||||
page.getByRole('button', { name: '投稿者 @tan_stack を解除' }),
|
||||
).toBeVisible()
|
||||
|
||||
const result = await a11y().analyze()
|
||||
expect(result.violations).toEqual([])
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user