diff --git a/tests/test_calendar_web.py b/tests/test_calendar_web.py index 12c8876..092a96a 100644 --- a/tests/test_calendar_web.py +++ b/tests/test_calendar_web.py @@ -232,8 +232,12 @@ def test_document_page_lists_related_events_and_creates_deadline_event( assert "Create event from deadline" in page.text assert "Export ICS" in page.text + csrf_token = client.cookies.get(CSRF_COOKIE_NAME) + assert csrf_token + created = client.post( f"/documents/{document.id}/calendar/from-deadline", + data={"csrf_token": csrf_token}, follow_redirects=False, ) assert created.status_code == status.HTTP_303_SEE_OTHER diff --git a/tests/test_knowledge_frontend.py b/tests/test_knowledge_frontend.py index 42abcee..cf15080 100644 --- a/tests/test_knowledge_frontend.py +++ b/tests/test_knowledge_frontend.py @@ -77,7 +77,7 @@ def test_knowledge_conversation_page_has_short_question_form( assert "Which invoices are due this month?" in response.text assert "Ask a concise question" in response.text assert f'action="/knowledge/conversations/{conversation.id}/delete"' in response.text - assert 'data-loading-label="Asking…"' in response.text + assert 'data-loading-label="Asking"' in response.text assert '