Skip to content

Commit

Permalink
add the github action for running local tests and fix a broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
shibbas committed Oct 25, 2023
1 parent 3e9ae5b commit b4decd0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Playwright Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
2 changes: 1 addition & 1 deletion tests/webapp.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ test.describe('developer settings', () => {
await expect(page.locator('label').filter({ hasText: 'contextual summaries' }).locator('i')).not.toBeChecked();
await expect(page.locator('label').filter({ hasText: 'follow-up questions' }).locator('i')).toBeChecked();
await expect(page.locator('label').filter({ hasText: 'Stream chat' }).locator('i')).toBeChecked();
await expect(page.getByText('Vectors + Text (Hybrid)')).toBeVisible();
await expect(page.getByLabel('Retrieval mode')).toContainText('Vectors + Text (Hybrid)');
});

test('handle no stream parsing', async ({ page }) => {
Expand Down

0 comments on commit b4decd0

Please sign in to comment.