From eb6a941f167b856db72b5584861f22568ea16d03 Mon Sep 17 00:00:00 2001 From: William Van Haevre Date: Tue, 24 Dec 2024 14:12:41 +0100 Subject: [PATCH] Add CheckPlayer verbose logging --- e2e/src/components/TestableTHEOplayerView.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e2e/src/components/TestableTHEOplayerView.tsx b/e2e/src/components/TestableTHEOplayerView.tsx index 17753f853..dce34c139 100644 --- a/e2e/src/components/TestableTHEOplayerView.tsx +++ b/e2e/src/components/TestableTHEOplayerView.tsx @@ -18,13 +18,15 @@ export const getTestPlayer = async (timeout = 5000, poll = 200): Promise { if (testPlayer) { // Player is ready. - console.debug(`[checkPlayer] ready id: ${testPlayerId}`); + console.debug(`[checkPlayer] Success: player ${testPlayerId} ready.`); resolve(testPlayer); } else if (Date.now() - start > timeout) { // Too late. + console.debug(`[checkPlayer] Failed: timeout reached for ${testPlayerId}.`); reject('Player not ready'); } else { // Wait & try again. + console.debug(`[checkPlayer] Player ${testPlayerId} not ready yet. Retrying...`); checkPlayer(); } }, poll);