From d6fa3e34f27adec44d5ee0df2e5c9a74c502f861 Mon Sep 17 00:00:00 2001 From: Opeyemi Ibrahim Date: Mon, 23 Sep 2024 12:23:44 +0100 Subject: [PATCH] fix url issue --- src/support/steps/lcp-beacon-script.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/support/steps/lcp-beacon-script.ts b/src/support/steps/lcp-beacon-script.ts index 43c0d97..f65bdbf 100644 --- a/src/support/steps/lcp-beacon-script.ts +++ b/src/support/steps/lcp-beacon-script.ts @@ -54,7 +54,7 @@ When('I visit the urls and check for lazyload', async function (this: ICustomWor Array.from(images).forEach((img) => { result[url] = { src: img.getAttribute('src'), - url: `${WP_BASE_URL}/${key}`, + url: url, lazyloaded: img.classList.contains('lazyloaded') } });