Skip to content

Commit

Permalink
test: add e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Dec 18, 2023
1 parent 9006c9a commit 84e5c8d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/ui/test/ui.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,19 @@ test.describe('ui', () => {

expect(pageErrors).toEqual([])
})

test('file-filter', async ({ page }) => {
await page.goto(pageUrl)

await page.getByPlaceholder('Search...').fill('')
await page.getByText('PASS (1)').click()
await expect(page.getByText('fixtures/sample.test.ts', { exact: true })).toBeVisible()

await page.getByPlaceholder('Search...').fill('nothing')
await page.getByText('No matched test').click()

await page.getByPlaceholder('Search...').fill('add')
await page.getByText('PASS (1)').click()
await expect(page.getByText('fixtures/sample.test.ts', { exact: true })).toBeVisible()
})
})

0 comments on commit 84e5c8d

Please sign in to comment.