Compare commits
2 commits
93e3f08756
...
7c5e63497f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7c5e63497f | ||
|
|
be9be94ed4 |
3 changed files with 26 additions and 0 deletions
|
|
@ -16,6 +16,7 @@
|
||||||
2. **Playwright-Konfiguration reparieren**
|
2. **Playwright-Konfiguration reparieren**
|
||||||
- Fehlerursache der Integrationstests identifizieren
|
- Fehlerursache der Integrationstests identifizieren
|
||||||
- Konfiguration korrigieren
|
- Konfiguration korrigieren
|
||||||
|
- Dokumentation des Problems in PLAYWRIGHT_ISSUE.md
|
||||||
|
|
||||||
3. **Lokalen Test-Prozess optimieren**
|
3. **Lokalen Test-Prozess optimieren**
|
||||||
- `cd backend && npm ci && npm test` ausführen
|
- `cd backend && npm ci && npm test` ausführen
|
||||||
|
|
|
||||||
21
PLAYWRIGHT_ISSUE.md
Normal file
21
PLAYWRIGHT_ISSUE.md
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
# Playwright Konfigurationsfehler
|
||||||
|
|
||||||
|
## Fehlerbeschreibung
|
||||||
|
Der Integrationstest schlägt fehl mit folgendem Fehler:
|
||||||
|
```
|
||||||
|
Error: browserType.launch: Target page, context or browser has been closed
|
||||||
|
Browser logs:
|
||||||
|
[...]
|
||||||
|
/home/openclaw/.cache/ms-playwright/chromium_headless_shell-1208/chrome-headless-shell-linux64/chrome-headless-shell: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory
|
||||||
|
```
|
||||||
|
|
||||||
|
## Ursache
|
||||||
|
Die benötigte Bibliothek `libatk-1.0.so.0` ist nicht installiert.
|
||||||
|
|
||||||
|
## Mögliche Lösungen
|
||||||
|
1. Installation der fehlenden Bibliothek (erfordert Root-Rechte)
|
||||||
|
2. Verwendung eines Docker-Containers für Tests
|
||||||
|
3. Anpassung der Playwright-Konfiguration zur Verwendung von headless-Modus ohne GUI
|
||||||
|
|
||||||
|
## Aktueller Status
|
||||||
|
Der Test kann nicht ausgeführt werden, da die notwendige Abhängigkeit fehlt.
|
||||||
|
|
@ -15,24 +15,28 @@ export default defineConfig({
|
||||||
actionTimeout: 0,
|
actionTimeout: 0,
|
||||||
baseURL: 'http://localhost:3000',
|
baseURL: 'http://localhost:3000',
|
||||||
trace: 'on-first-retry',
|
trace: 'on-first-retry',
|
||||||
|
headless: true,
|
||||||
},
|
},
|
||||||
projects: [
|
projects: [
|
||||||
{
|
{
|
||||||
name: 'chromium',
|
name: 'chromium',
|
||||||
use: {
|
use: {
|
||||||
...devices['Desktop Chrome'],
|
...devices['Desktop Chrome'],
|
||||||
|
headless: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'firefox',
|
name: 'firefox',
|
||||||
use: {
|
use: {
|
||||||
...devices['Desktop Firefox'],
|
...devices['Desktop Firefox'],
|
||||||
|
headless: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'webkit',
|
name: 'webkit',
|
||||||
use: {
|
use: {
|
||||||
...devices['Desktop Safari'],
|
...devices['Desktop Safari'],
|
||||||
|
headless: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue