test(e2e): add EPIC-08 document integration E2E test coverage#382
Merged
Conversation
- Update DocumentsPage POM from stub to full implementation with locators for the DocumentBrowser "not configured" state - Remove Documents test from stub-pages.spec.ts (page graduated to full feature in EPIC-08) - Add e2e/tests/documents/documents-browser.spec.ts covering 8 scenarios: page load smoke, not-configured state rendering, env var instructions, navigation, responsive layout, dark mode, accessibility, and API status - Add e2e/tests/documents/documents-linked-sections.spec.ts covering 10 scenarios: LinkedDocumentsSection on work item detail (6) and invoice detail (4) — heading visibility, disabled add button, not-configured banner, aria-labelledby, responsive layout, dark mode All tests validate against the "not configured" state since PAPERLESS_URL and PAPERLESS_API_TOKEN are not set in the E2E testcontainer environment. Fixes #360 Co-Authored-By: Claude qa-integration-tester (Sonnet 4.5) <noreply@anthropic.com>
Records DocumentBrowser state machine, LinkedDocumentsSection selectors, invoice detail route URL pattern, and Paperless API endpoints for future test sessions. Co-Authored-By: Claude qa-integration-tester (Sonnet 4.5) <noreply@anthropic.com>
Contributor
|
🎉 This PR is included in version 1.10.0-beta.83 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Contributor
|
🎉 This PR is included in version 1.11.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DocumentsPagePOM from the old stub version to the full EPIC-08 implementation, adding locators for the DocumentBrowser "not configured" stateDocuments page loads with headingtest fromstub-pages.spec.tssince the Documents page has graduated to a full feature page (EPIC-08)e2e/tests/documents/documents-browser.spec.tswith 8 scenarios covering the Documents page: page load smoke, "not configured" state rendering, env var instructions, navigation/deep-linking, responsive layout, dark mode, accessibility (h1/h2 heading structure), and Paperless status APIe2e/tests/documents/documents-linked-sections.spec.tswith 10 scenarios covering theLinkedDocumentsSectioncomponent on work item detail (6 scenarios) and invoice detail (4 scenarios): section heading visibility, disabled add button when not configured, not-configured banner text, aria-labelledby accessibility, responsive no-scroll layout, and dark modeAll tests validate against the "not configured" state since
PAPERLESS_URLandPAPERLESS_API_TOKENare not set in the E2E testcontainer environment. This is the correct approach per the E2E test setup — Paperless availability cannot be assumed in the automated test environment.Test plan
documents-browser.spec.ts: Documents page shows "Paperless-ngx Not Configured" headingdocuments-browser.spec.ts: API/api/paperless/statusreturnsconfigured: falsedocuments-linked-sections.spec.ts: Work item detail page shows Documents section with disabled Add buttondocuments-linked-sections.spec.ts: Invoice detail page shows Documents section with disabled Add buttonCloses #360 (E2E validation portion)
🤖 Generated with Claude Code