EXPORT-1: e2e - Download-Smoke (/einstellungen) + Mock: /export-Zip, /settings/breeder-profile, URL-Praedikat fuer /api-relative Basis (OPS-1-proof)

This commit is contained in:
2026-06-06 07:55:14 +02:00
parent 8fa02a5d49
commit a1549266c3
2 changed files with 57 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
/** EXPORT-1: Einstellungen — Datenexport-Karte + Download-Smoke. */
import { de, expect, gotoSection, test } from './fixtures'
const t = de.pages.datenexport
test('Einstellungen zeigt die Datenexport-Karte und der Download startet', async ({ page }) => {
await gotoSection(page, de.nav.settings)
await expect(page.getByRole('heading', { name: de.pages.einstellungen.title })).toBeVisible()
// Datenexport-Karte mit deutschem Erklärtext
await expect(page.getByRole('heading', { name: t.title })).toBeVisible()
await expect(page.getByText(t.intro)).toBeVisible()
await expect(page.getByText(t.photoNote)).toBeVisible()
// Klick startet den Zip-Download
const downloadPromise = page.waitForEvent('download')
await page.getByRole('link', { name: t.button }).click()
const download = await downloadPromise
expect(download.suggestedFilename()).toContain('rennmaus-export')
})