generated from john/python-template
This commit is contained in:
@@ -85,6 +85,7 @@ class TestJobsPageRendering:
|
||||
assert "Jobs for Document" in response.text
|
||||
assert "Create job" not in response.text
|
||||
assert "Refresh" not in response.text
|
||||
assert "Back to Document" in response.text
|
||||
assert first_job_id in response.text
|
||||
assert second_job_id not in response.text
|
||||
|
||||
@@ -131,10 +132,25 @@ class TestJobsPageRendering:
|
||||
assert "Document Name:" in response.text
|
||||
assert "Sources:" in response.text
|
||||
assert "View Sources" in response.text
|
||||
assert "Back to Jobs" in response.text
|
||||
assert "View Linked Document" not in response.text
|
||||
assert "View Linked Sources" not in response.text
|
||||
assert "updates automatically while the job is active" in response.text
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_job_detail_page_renders_document_context_back_button(
|
||||
self,
|
||||
app_client,
|
||||
seed_document_with_unlinked_job,
|
||||
):
|
||||
_, client = app_client
|
||||
document_id, job_id = seed_document_with_unlinked_job
|
||||
|
||||
response = client.get(f"/ui/jobs/{job_id}?from=document&document_id={document_id}")
|
||||
|
||||
assert response.status_code == 200
|
||||
assert "Back to Document" in response.text
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_job_cancel_page_renders_confirmation(self, app_client, seed_document_with_unlinked_job):
|
||||
_, client = app_client
|
||||
|
||||
Reference in New Issue
Block a user