fix: dashboard test — add session cookie for auth-protected route
test_dashboard now passes flowdeck_session cookie to bypass auth redirect
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ def test_health(client):
|
|||||||
|
|
||||||
|
|
||||||
def test_dashboard(client):
|
def test_dashboard(client):
|
||||||
resp = client.get("/")
|
resp = client.get("/", cookies={"flowdeck_session": "test-session"})
|
||||||
assert resp.status_code == 200
|
assert resp.status_code == 200
|
||||||
assert "sidebar" in resp.text
|
assert "sidebar" in resp.text
|
||||||
assert "workspace" in resp.text or "app-layout" in resp.text
|
assert "workspace" in resp.text or "app-layout" in resp.text
|
||||||
|
|||||||
Reference in New Issue
Block a user