Fix thread preview tests

This commit is contained in:
swaggboi 2024-08-11 22:24:12 -04:00
parent 32393fd8f3
commit 0aef68495c

View file

@ -40,6 +40,11 @@ subtest 'Submit input', sub {
->status_is(200) ->status_is(200)
->text_like(p => qr/ayy\.\.\. lmao/); ->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) $t->post_ok('/human/thread/post', form => \%preview_thread)
->status_is(200) ->status_is(200)
->text_like(p => qr/ayy\.\.\. lmao/); ->text_like(p => qr/ayy\.\.\. lmao/);