diff --git a/README.md b/README.md index 0a121d7..d6afcc6 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,22 @@ -# Frontend Process -´cd frontend´ -´npm install´ -´npm run (watch/build)´ +# Build -# Notes / Bugfixes ## Frontend -- [] support esc to close sidebar -- [] reload page -> don't throw input away! +1. `cd frontend` +2. `npm install` +3. `npm run (watch/build)` + +# Run ## Backend +1. `cargo r` + +# Test -# Nice to have ## Frontend -- [] my trips for cox +- `npx playwright test --workers 1 --project firefox` +- Nice UI: `--ui` +- Generate tests: `npx playwright codegen` + +## Backend (Unit + Integration) +`cargo t` + diff --git a/frontend/tests/cox.spec.ts b/frontend/tests/cox.spec.ts index ae65a99..467e5cc 100644 --- a/frontend/tests/cox.spec.ts +++ b/frontend/tests/cox.spec.ts @@ -1,4 +1,4 @@ -import { test, expect } from '@playwright/test'; +import { test, expect, Page } from '@playwright/test'; test('cox can create and delete trip', async ({ page }) => { await page.goto('http://localhost:8000/auth'); @@ -25,7 +25,7 @@ test('cox can create and delete trip', async ({ page }) => { }); test.describe('cox can edit trips', () => { - let sharedPage; + let sharedPage: Page; test.beforeEach(async ({ browser }) => { const page = await browser.newPage();