generated from john/python-template
V6.1 UI refinements, add Maintenance jobs to Settings
Quality Gate / gate (push) Failing after 2m57s
Quality Gate / gate (push) Failing after 2m57s
This commit is contained in:
@@ -103,7 +103,8 @@ class TestDocumentsPageRendering:
|
||||
r'"name":"tags","label":"Tags".*'
|
||||
r'"name":"document_date","label":"Document Date".*'
|
||||
r'"name":"document_type","label":"Type".*'
|
||||
r'"name":"source_count","label":"# Sources"',
|
||||
r'"name":"source_count","label":"# Sources".*'
|
||||
r'"name":"transcription_status","label":"Transcription Status"',
|
||||
response.text,
|
||||
re.DOTALL,
|
||||
)
|
||||
@@ -181,17 +182,23 @@ class TestDocumentsPageRendering:
|
||||
|
||||
assert response.status_code == 200
|
||||
assert "Letter from Hig" in response.text
|
||||
assert "ZC-1924-001" in response.text
|
||||
assert "Zenna Cochran" in response.text
|
||||
assert "Document Type:" in response.text
|
||||
assert "Letter" in response.text
|
||||
assert "07-04-1924" in response.text
|
||||
assert "1924-07-04" not in response.text
|
||||
assert "google.com/maps/search/?api=1&query=Salt+Lake+City%2C+Utah" in response.text
|
||||
assert "PIPELINE JOBS" in response.text.upper()
|
||||
assert "Document Details" in response.text
|
||||
assert "Edit Document" in response.text
|
||||
assert "Back to Documents" in response.text
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_document_info_page_renders_metadata_cards(self, app_client, seed_person_and_document):
|
||||
_, client = app_client
|
||||
doc_id, _ = seed_person_and_document
|
||||
|
||||
response = client.get(f"/ui/documents/{doc_id}/info")
|
||||
|
||||
assert response.status_code == 200
|
||||
assert "Document Info" in response.text
|
||||
assert "ZC-1924-001" in response.text
|
||||
assert "google.com/maps/search/?api=1&query=Salt+Lake+City%2C+Utah" in response.text
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_document_detail_page_renders_person_context_back_button(self, app_client, seed_person_and_document):
|
||||
_, client = app_client
|
||||
|
||||
Reference in New Issue
Block a user