V5.1 UI refinements
Quality Gate / gate (push) Failing after 11s

This commit is contained in:
Jim Lancaster
2026-08-23 15:28:41 -05:00
parent ae3483ec2e
commit ebf659b26c
12 changed files with 58 additions and 33 deletions
+5
View File
@@ -36,6 +36,7 @@ async def seed_person_and_document():
name="Letter from Hig",
document_type_id=letter_type.id,
archive_identifier="ZC-1924-001",
document_date=date(1924, 7, 4),
)
session.add(doc)
await session.flush()
@@ -148,6 +149,8 @@ class TestDocumentsPageRendering:
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 "PIPELINE JOBS" in response.text.upper()
assert "Edit Document" in response.text
@@ -183,6 +186,8 @@ class TestDocumentsPageRendering:
assert response.status_code == 200
assert "Edit Document Record" in response.text
assert "Letter from Hig" in response.text
assert "Document date" in response.text
assert "Exact date (YYYY-MM-DD)" not in response.text
assert "ZC-1924-001" in response.text
@pytest.mark.asyncio
+11 -5
View File
@@ -11,9 +11,11 @@ from transcription.db import session_scope
from transcription.db.models import Document
from transcription.db.models import DocumentPerson
from transcription.db.models import Person
from transcription.db.models import PersonTag
from transcription.db.models import PersonRole
from transcription.db.models import Photo
from transcription.db.models import Source
from transcription.db.models import Tag
@pytest.mark.integration
@@ -35,16 +37,20 @@ class TestPeoplePageRendering:
_, client = app_client
async with session_scope() as session:
session.add(Person(given_names="Ada", last_name="Lovelace"))
person = Person(given_names="Ada", last_name="Lovelace")
tag = Tag(label="Pioneer", normalized_label="pioneer")
session.add_all([person, tag])
await session.flush()
session.add(PersonTag(person_id=person.id, tag_id=tag.id))
await session.commit()
response = client.get("/ui/people")
assert response.status_code == 200
assert "Lovelace" in response.text
assert "Ada" in response.text
assert "Last Name" in response.text
assert "First & Middle" in response.text or "First & Middle" in response.text
assert "Lovelace, Ada" in response.text
assert "Last Name, First & Middle" in response.text or "Last Name, First & Middle" in response.text
assert "Tags" in response.text
assert "Pioneer" in response.text
assert "FamilySearch ID" in response.text
assert "# Documents" in response.text
+1 -1
View File
@@ -266,7 +266,7 @@ class TestSourcesPageRendering:
assert response.status_code == 200
assert "job-failed-page.png" in response.text
assert "failed" in response.text.lower()
assert "FAILED" in response.text
assert "Provider timed out" in response.text
@pytest.mark.asyncio