docling-studio/e2e/api/src/test/resources/common/helpers/cleanup.feature
Pier-Jean Malandrino fdbab2f49e feat: add Karate UI e2e tests with data-e2e selectors (#124)
- Add e2e/ui/ as peer project to e2e/api/ (own pom.xml, runner, config)
- 5 critical UI journeys: upload, delete, analysis, batch-progress, rechunk
- 4 local-only tests: sidebar, i18n, error-states, pipeline-options
- 1 full happy path workflow covering all modes
- Add data-e2e attributes on all tested Vue components (decoupled from CSS)
- Add CONVENTIONS.md with 7 golden rules for writing Karate UI tests
- Update CI with dedicated e2e-ui job (Chrome headless, --no-sandbox)
- Update docs/contributing.md with UI test instructions

Closes #124
2026-04-08 17:53:52 +02:00

12 lines
408 B
Gherkin

@ignore
Feature: Helper — Delete a document and its analyses
# Callable feature: cleans up test data
# Usage: * call read('classpath:common/helpers/cleanup.feature') { docId: '#(docId)' }
Scenario:
Given url baseUrl
And path '/api/documents', docId
When method DELETE
# Accept both 204 (deleted) and 404 (already gone)
Then assert responseStatus == 204 || responseStatus == 404