generated from john/python-template
UI update complete?
This commit is contained in:
@@ -16,21 +16,17 @@ class TestPageRendering:
|
||||
assert response.headers["location"] == "/ui"
|
||||
|
||||
def test_ui_redirects_to_upload(self, app_client):
|
||||
"""GET /ui redirects to the upload page."""
|
||||
"""GET /ui redirects to the jobs page."""
|
||||
_, client = app_client
|
||||
response = client.get("/ui", follow_redirects=False)
|
||||
|
||||
assert response.status_code == 307
|
||||
assert response.headers["location"] == "/ui/upload"
|
||||
assert response.headers["location"] == "/ui/jobs"
|
||||
|
||||
def test_upload_page_renders_expected_controls(self, app_client):
|
||||
"""GET /ui/upload returns the page shell and upload controls."""
|
||||
"""GET /ui/upload redirects to the job-create flow."""
|
||||
_, client = app_client
|
||||
response = client.get("/ui/upload")
|
||||
response = client.get("/ui/upload", follow_redirects=False)
|
||||
|
||||
assert response.status_code == 200
|
||||
assert "VibeScribe" in response.text
|
||||
assert "Upload Document" in response.text
|
||||
assert "Select document file" in response.text
|
||||
assert "Upload" in response.text
|
||||
assert "Jobs" in response.text
|
||||
assert response.status_code == 307
|
||||
assert response.headers["location"] == "/ui/jobs/new"
|
||||
|
||||
Reference in New Issue
Block a user