From cc31a31224342a4a532ef8e6797269906e062cbd Mon Sep 17 00:00:00 2001 From: Pavel Kvach Date: Sat, 30 Mar 2024 10:28:58 +0200 Subject: [PATCH] comments: Fix total comments count calculation Changes to properly count hidden comments when calculating the total number of comments. Fixes https://github.com/isso-comments/isso/issues/448 --- isso/js/tests/integration/puppet.test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/isso/js/tests/integration/puppet.test.js b/isso/js/tests/integration/puppet.test.js index e77070be..2a1abb79 100644 --- a/isso/js/tests/integration/puppet.test.js +++ b/isso/js/tests/integration/puppet.test.js @@ -238,7 +238,10 @@ test("should execute GET/PUT/POST/DELETE requests correctly", async () => { await expect(page).toMatchElement( '#isso-1 .isso-text', - { text: 'New comment body' }, + { + text: 'New comment body', + timeout: 1000, + }, ); // Delete comment via DELETE