From: Alexander Moisseev Date: Sat, 25 Jul 2026 10:12:30 +0000 (+0300) Subject: [Test] WebUI: widen throughput counter E2E range X-Git-Tag: 4.1.3~5^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=564ad78eec62b59af04335e1cee4d2fec68b8fa0;p=thirdparty%2Frspamd.git [Test] WebUI: widen throughput counter E2E range #rrd-total-value is an integral of the message rate (truncated per series and summed over the 6 action series), an approximation that can overshoot the messages scanned near row boundaries. CI observed the total reach base+4 while only +2 were actually scanned (the exact "Scanned" counter test still passed), exceeding the previous +3 cap. Allow +4. --- diff --git a/test/playwright/tests/scan.spec.mjs b/test/playwright/tests/scan.spec.mjs index 049d3aba92..15eaa29cec 100644 --- a/test/playwright/tests/scan.spec.mjs +++ b/test/playwright/tests/scan.spec.mjs @@ -208,12 +208,15 @@ test.describe.serial("Scan flow across WebUI tabs", () => { test("Throughput `Total messages` counter increased", async ({}, testInfo) => { testInfo.setTimeout(140000); - // With empty RRD the first PDP is lost, so only +1 is visible - // Depending on row boundaries, throughput may show +2 or even +3 + // With empty RRD the first PDP is lost, so only +1 is visible. + // #rrd-total-value is an integral of the message rate (truncated per + // series, summed over the 6 action series), so depending on row + // boundaries it can overshoot the messages scanned (+2 .. +4). const targetValues = [ scannedBefore.throughput + 1, scannedBefore.throughput + 2, scannedBefore.throughput + 3, + scannedBefore.throughput + 4, ]; let lastValue = null;