feat(settings): add settings route and API updates\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

This commit is contained in:
2026-05-16 20:19:35 +02:00
parent 9b63d981b0
commit 0ee89cf052
38 changed files with 1426 additions and 562 deletions
@@ -0,0 +1,45 @@
# Instructions
- Following Playwright test failed.
- Explain why, be concise, respect Playwright best practices.
- Provide a snippet of code with the fix, if possible.
# Test info
- Name: e2e\settings.spec.ts >> admin can view settings page
- Location: tests\e2e\settings.spec.ts:3:1
# Error details
```
Error: expect(locator).toBeVisible() failed
Locator: locator('text=Settings')
Expected: visible
Timeout: 5000ms
Error: element(s) not found
Call log:
- Expect "toBeVisible" with timeout 5000ms
- waiting for locator('text=Settings')
```
```yaml
- main:
- heading "404" [level=1]
- paragraph: The requested page could not be found.
```
# Test source
```ts
1 | import { test, expect } from '@playwright/test';
2 |
3 | test('admin can view settings page', async ({ page }) => {
4 | await page.goto('http://localhost:5173/settings');
> 5 | await expect(page.locator('text=Settings')).toBeVisible();
| ^ Error: expect(locator).toBeVisible() failed
6 | });
7 |
```