Skip to content

Commit

Permalink
CI のベースを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Sep 8, 2024
1 parent 9409598 commit 729b694
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"dev": "vite",
"test:vitest": "vitest run",
"test:playwright": "playwright tests",
"test:playwright": "playwright test",
"build": "vite build",
"lint": "biome lint src/",
"fmt": "pnpm biome format --write src/ tests/",
Expand Down
13 changes: 13 additions & 0 deletions tests/playwright/main.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,18 @@ import { expect, test } from '@playwright/test'

test('scan parquet', async ({ page }) => {
await page.goto('http://localhost:5173/index.html')
// 初期値が0であることを確認
await expect(page.locator('#scanned')).toHaveText('Scanned: false')

// 「Scan Parquet」ボタンをクリック
await page.click('#scan-parquet')

// true になるまで待機(最大10秒)
await expect(page.locator('#scanned')).toHaveText('Scanned: true', { timeout: 30000 })

// 「load table」ボタンをクリック
await page.click('#load-table')

// テーブルが読み込まれたことを確認
await expect(page.locator('#table')).toBeVisible()
})

0 comments on commit 729b694

Please sign in to comment.