1
0
Fork 0
mirror of https://github.com/s-frick/effigenix.git synced 2026-03-28 15:29:34 +01:00
This commit is contained in:
Janosch 2026-03-27 11:13:16 +01:00
parent 6a672705c2
commit e897f41a32
12 changed files with 129 additions and 31 deletions

View file

@ -1,20 +1,18 @@
# E2E-Test-Runner (Playwright API-Tests, kein Browser)
# Build-Context: Repo-Root (..)
# Standalone benötigt keine pnpm-Workspace-Konfiguration.
FROM mcr.microsoft.com/playwright:v1.51.0-noble
WORKDIR /app
# pnpm installieren
RUN npm install -g pnpm@9
# Workspace-Root und e2e-Package-Manifest kopieren
COPY frontend/package.json frontend/pnpm-workspace.yaml ./
COPY test-automation/web-ui/package.json ./test-automation/web-ui/
# pnpm Install (nur Prod + Dev-Deps des e2e-Pakets)
RUN pnpm install --frozen-lockfile
# Test-Code und Konfiguration kopieren
COPY test-automation/web-ui/ ./test-automation/web-ui/
WORKDIR /app/test-automation/web-ui
ENTRYPOINT ["pnpm", "exec", "playwright", "test"]
# Nur package.json zuerst für Layer-Caching
COPY test-automation/web-ui/package.json ./
RUN pnpm install --no-frozen-lockfile
# Test-Code kopieren
COPY test-automation/web-ui/ ./
ENTRYPOINT ["pnpm", "exec", "playwright", "test", "--project=api"]

View file

@ -22,7 +22,7 @@ export const test = base.extend<AuthFixtures>({
const res = await request.post('/api/auth/login', {
data: {
username: process.env.TEST_USER_VIEWER ?? 'viewer',
password: process.env.TEST_USER_VIEWER_PASS ?? 'viewer123',
password: process.env.TEST_USER_VIEWER_PASS ?? 'test1234',
},
});
expect(res.status()).toBe(200);

View file

@ -12,7 +12,7 @@ test.describe('TC-SUP: Lieferanten', () => {
});
expect(res.status()).toBe(201);
const body = await res.json();
expect(body.status).toBe('AKTIV');
expect(body.status).toBe('ACTIVE');
});
test('TC-SUP-02: Lieferant erscheint in Liste nach Erstellung', async ({ request, adminToken }) => {

View file

@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "bundler",
"module": "CommonJS",
"moduleResolution": "node16",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,