]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Test] WebUI: fix race in history reset E2E test
authorAlexander Moisseev <moiseev@mezonplus.ru>
Sun, 5 Jul 2026 19:17:18 +0000 (22:17 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Sun, 5 Jul 2026 19:17:18 +0000 (22:17 +0300)
commit735609c137530646a910769f7cf988d9d73c0918
tree41b7431f36108d5c253176f951c47c9495eafd8c
parent9ab0ed6a84732b4550f23b0e242e09aedcb00289
[Test] WebUI: fix race in history reset E2E test

Register the historyreset/history response listeners before the click
via Promise.all. waitForResponse only catches responses arriving after
it is set up, and the fast local historyreset round-trip could beat a
listener attached post-click, causing a flaky 10s timeout under CI load.
test/playwright/tests/scan.spec.mjs