diff --git a/playwright.config.ts b/playwright.config.ts index 1c5d7a1..dfad53a 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -6,6 +6,7 @@ const config: PlaywrightTestConfig = { port: 4173 }, testDir: 'tests', + workers: 1, testMatch: /(.+\.)?(test|spec)\.[jt]s/ }; diff --git a/src/components/Post.svelte b/src/components/Post.svelte index 91ff9a2..80505e3 100644 --- a/src/components/Post.svelte +++ b/src/components/Post.svelte @@ -13,7 +13,7 @@ import ProfilePicture from './ProfilePicture.svelte'; import type { Comments } from '$lib/types/Comment'; - export let postData; + export let postData: PostStructure; export let currentUsername: string | undefined; const toastStore = getToastStore(); @@ -147,15 +147,15 @@ async function setShowButton() { showNoComments = !showNoComments; if (showNoComments) { - commentData = await fetchComments(limit, postData.postId, offset); + commentData = (await fetchComments(limit, postData.postId, offset)) as Comments; } } - function commentSendButton() { + async function commentSendButton() { sendComment(post.postId, commentText); commentText = ''; click++; - commentData = fetchComments(limit, postData.postId, offset); + commentData = (await fetchComments(limit, postData.postId, offset)) as Comments; } @@ -253,6 +253,15 @@
+ {#if post.repost.picture?.url} +
+ +
+ {/if}

{#each newRepostPost as { hashtagClass, text, wordID } (wordID)} {text} @@ -297,7 +306,6 @@ title="commentInput" bind:value={commentText} placeholder={$t('post.postComment.placeholder')} - rows="1" maxlength="128" /> @@ -310,7 +318,7 @@ {#if (loginToken != '' || loginToken == undefined) && showNoComments} {#key click} - + {/key} {/if} diff --git a/src/components/layout/Navbar.svelte b/src/components/layout/Navbar.svelte index 031beae..cf5b5ec 100644 --- a/src/components/layout/Navbar.svelte +++ b/src/components/layout/Navbar.svelte @@ -89,7 +89,7 @@ } - +

diff --git a/src/components/modals/ModalChat.svelte b/src/components/modals/ModalChat.svelte index ef33487..63e2809 100644 --- a/src/components/modals/ModalChat.svelte +++ b/src/components/modals/ModalChat.svelte @@ -131,7 +131,7 @@ } -
+
{/if}