From 0aef68495cf9b3b10773945d59a527f00cfc15a4 Mon Sep 17 00:00:00 2001 From: swaggboi Date: Sun, 11 Aug 2024 22:24:12 -0400 Subject: [PATCH] Fix thread preview tests --- t/preview.t | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/t/preview.t b/t/preview.t index d99e56f..737b7aa 100644 --- a/t/preview.t +++ b/t/preview.t @@ -40,6 +40,11 @@ subtest 'Submit input', sub { ->status_is(200) ->text_like(p => qr/ayy\.\.\. lmao/); + $t->get_ok('/human/thread/post'); + + $preview_thread{'csrf_token'} = + $t->tx->res->dom->at('input[name="csrf_token"]')->val; + $t->post_ok('/human/thread/post', form => \%preview_thread) ->status_is(200) ->text_like(p => qr/ayy\.\.\. lmao/);