Skip to content

Commit c5c7e66

Browse files
authored
Implement Login UI (#1)
* feat(auth): define signup form * feat(ui): create signup ui * chore: configure e2e tests * tests: add demo tests * fix: merge conflicts in signup form * feat(auth): implement auth session mgmt * chore: add react hook form to deps * feat(ui): Implement login and signup components * feat(ui): add signin route
1 parent b52c12d commit c5c7e66

17 files changed

Lines changed: 870 additions & 194 deletions

File tree

‎.github/workflows/playwright.yml‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Playwright Tests
2+
on:
3+
push:
4+
branches: [ main, master ]
5+
pull_request:
6+
branches: [ main, master ]
7+
jobs:
8+
test:
9+
timeout-minutes: 60
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: lts/*
16+
- name: Install dependencies
17+
run: npm ci
18+
- name: Install Playwright Browsers
19+
run: npx playwright install --with-deps
20+
- name: Run Playwright tests
21+
run: npx playwright test
22+
- uses: actions/upload-artifact@v4
23+
if: ${{ !cancelled() }}
24+
with:
25+
name: playwright-report
26+
path: playwright-report/
27+
retention-days: 30

‎.gitignore‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,11 @@ yarn-error.log*
4040
# typescript
4141
*.tsbuildinfo
4242
next-env.d.ts
43+
44+
# Playwright
45+
node_modules/
46+
/test-results/
47+
/playwright-report/
48+
/blob-report/
49+
/playwright/.cache/
50+
/playwright/.auth/

‎.prettierrc‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 4,
4+
"semi": true,
5+
"singleQuote": true
6+
}

‎e2e/example.spec.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { test, expect } from '@playwright/test';
2+
3+
test('has title', async ({ page }) => {
4+
await page.goto('/signup')
5+
// Expect a title "to contain" a substring.
6+
await expect(page.getByRole('heading', { name: 'Create Account' })).toBeVisible();
7+
});
8+

0 commit comments

Comments
 (0)