feat(modernization): promote deferred routes to in-scope and unify page header styles
Promote /tables, /excel-query, /query-tool, /mid-section-defect from deferred to full shell-governed in-scope routes with canonical redirects, content contracts, governance artifacts, and updated CI gates. Unify all page header gradients to #667eea → #764ba2 and h1 font-size to 24px for visual consistency across all dashboard pages. Remove Native Route-View dev annotations from job-query, excel-query, and query-tool headers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -28,17 +28,19 @@ def client(app):
|
||||
return app.test_client()
|
||||
|
||||
|
||||
class TestQueryToolPage:
|
||||
"""Tests for /query-tool page route."""
|
||||
|
||||
def test_page_returns_html(self, client):
|
||||
"""Should return the query tool page."""
|
||||
with client.session_transaction() as sess:
|
||||
sess["admin"] = {"username": "admin", "displayName": "Admin"}
|
||||
|
||||
response = client.get('/query-tool')
|
||||
assert response.status_code == 200
|
||||
assert b'html' in response.data.lower()
|
||||
class TestQueryToolPage:
|
||||
"""Tests for /query-tool page route."""
|
||||
|
||||
def test_page_returns_html(self, client, monkeypatch):
|
||||
"""Should return the query tool page when SPA redirect is disabled."""
|
||||
monkeypatch.setenv("PORTAL_SPA_ENABLED", "false")
|
||||
client.application.config["PORTAL_SPA_ENABLED"] = False
|
||||
with client.session_transaction() as sess:
|
||||
sess["admin"] = {"username": "admin", "displayName": "Admin"}
|
||||
|
||||
response = client.get('/query-tool')
|
||||
assert response.status_code == 200
|
||||
assert b'html' in response.data.lower()
|
||||
|
||||
|
||||
class TestResolveEndpoint:
|
||||
|
||||
Reference in New Issue
Block a user