From 925bf1c50e70f6a8e2f194e66261d780a07468a3 Mon Sep 17 00:00:00 2001 From: Beatriz Rizental Date: Wed, 25 Jan 2023 16:53:26 +0100 Subject: [PATCH] Add some logs --- tests/functional/testAddons.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/functional/testAddons.js b/tests/functional/testAddons.js index df5767f4d55..93ea0a62d9c 100644 --- a/tests/functional/testAddons.js +++ b/tests/functional/testAddons.js @@ -174,7 +174,7 @@ describe('Addons', function() { .body = mockDetails; }; - it(`is message shown when expiration happens ${Date.now() - expiresOn}ms from now`, async () => { + it(`is message shown when expiration happens ${expiresOn - Date.now()}ms from now`, async () => { // Load all production addons. // These are loaded all together, so we don't know the exact number of addons. await vpn.resetAddons('prod'); @@ -185,6 +185,7 @@ describe('Addons', function() { await vpn.waitForCondition(async () => { const loadedMessages = await vpn.messages(); const isSubscriptionExpiringMessageAvailable = loadedMessages.includes("message_subscription_expiring"); + console.log(loadedMessages) return isMessageShown ? isSubscriptionExpiringMessageAvailable : !isSubscriptionExpiringMessageAvailable; }); });